Persistence stores the json file with indentation

This commit is contained in:
Patrick McDonagh
2018-04-05 18:24:21 -05:00
parent 1fc60e9f7d
commit 0249503d6c

View File

@@ -16,6 +16,6 @@ def store(persist_obj, filename="persist.json"):
"""Store the persisting settings into the specified file."""
try:
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:
return False