From b4770bc9a0d53445a22cd41d62e4b549090170e4 Mon Sep 17 00:00:00 2001 From: luukas Date: Sat, 18 Jun 2022 01:30:50 +0300 Subject: [PATCH] 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. --- app/classes/shared/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index ae5670ea..0ad276fc 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -643,7 +643,7 @@ class Helpers: session_data = {"pid": pid, "started": now.strftime("%d-%m-%Y, %H:%M:%S")} 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, # and set human readable later