mirror of
https://github.com/ihabunek/toot
synced 2024-12-23 07:27:12 +01:00
Sort keys when saving JSON config
This helps keeping changes minimal when rewritting from the program.
This commit is contained in:
parent
9d3d38552e
commit
949b5552ca
@ -72,7 +72,7 @@ def load_config():
|
||||
|
||||
def save_config(config):
|
||||
with open(CONFIG_FILE, 'w') as f:
|
||||
return json.dump(config, f, indent=True)
|
||||
return json.dump(config, f, indent=True, sort_keys=True)
|
||||
|
||||
|
||||
def extract_user_app(config, user_id):
|
||||
|
Loading…
Reference in New Issue
Block a user