Persistence stores the json file with indentation
This commit is contained in:
@@ -16,6 +16,6 @@ def store(persist_obj, filename="persist.json"):
|
|||||||
"""Store the persisting settings into the specified file."""
|
"""Store the persisting settings into the specified file."""
|
||||||
try:
|
try:
|
||||||
with open(filename, 'w') as persist_file:
|
with open(filename, 'w') as persist_file:
|
||||||
return json.dump(persist_obj, persist_file)
|
return json.dump(persist_obj, persist_file, indent=4)
|
||||||
except Exception:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user