Use indent=4 instead of indent=True

`indent=True` is equivalent to `indent=1`
You can test this by executing `'foo' * True`, `'foo' * 1` and
`'foo' * 4` in a Python REPL.
This commit is contained in:
luukas 2022-06-18 01:30:50 +03:00
parent 5bfd564ef4
commit b4770bc9a0
No known key found for this signature in database
GPG Key ID: CC4915E8D71FC044

View File

@ -643,7 +643,7 @@ class Helpers:
session_data = {"pid": pid, "started": now.strftime("%d-%m-%Y, %H:%M:%S")} session_data = {"pid": pid, "started": now.strftime("%d-%m-%Y, %H:%M:%S")}
with open(self.session_file, "w", encoding="utf-8") as f: with open(self.session_file, "w", encoding="utf-8") as f:
json.dump(session_data, f, indent=True) json.dump(session_data, f, indent=4)
# because this is a recursive function, we will return bytes, # because this is a recursive function, we will return bytes,
# and set human readable later # and set human readable later