diff --git a/src/repl_python_wakatime/hooks/codestats.py b/src/repl_python_wakatime/hooks/codestats.py index 26d0654..e394edd 100644 --- a/src/repl_python_wakatime/hooks/codestats.py +++ b/src/repl_python_wakatime/hooks/codestats.py @@ -137,10 +137,12 @@ def send_xp(self) -> None: # after lock is released we can send the payload utc_now = datetime.now().astimezone().isoformat() - pulse_json = json.dumps({ - "coded_at": f"{utc_now}", - "xps": xp_list, - }).encode("utf-8") + pulse_json = json.dumps( + { + "coded_at": f"{utc_now}", + "xps": xp_list, + } + ).encode("utf-8") req = Request(url=self.url, data=pulse_json, headers=headers) error = "" try: