mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
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:
parent
5bfd564ef4
commit
b4770bc9a0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user