1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-22 23:08:17 +01:00

Sort keys when saving JSON config

This helps keeping changes minimal when rewritting from the program.
This commit is contained in:
Denis Laxalde 2020-01-26 21:27:57 +01:00 committed by Ivan Habunek
parent 9d3d38552e
commit 949b5552ca
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -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):