fix: use pretty json for config

This commit is contained in:
Yannik Schmidt
2024-05-11 19:04:55 +02:00
parent b071aff857
commit e9daf6ba16

View File

@@ -40,7 +40,7 @@ def close_input_window(input_window):
# dump config and write to file # # dump config and write to file #
print(json.dumps(ret_dict)) print(json.dumps(ret_dict))
with open(CONFIG_FILE, "w") as f: with open(CONFIG_FILE, "w") as f:
json.dump(ret_dict, f) json.dump(ret_dict, f, indent=2)
# quit input window # # quit input window #
input_window.update() input_window.update()