Sort keys when saving JSON config

This helps keeping changes minimal when rewritting from the program.
pull/171/head
Denis Laxalde 2020-01-26 21:27:57 +01:00 zatwierdzone przez Ivan Habunek
rodzic 9d3d38552e
commit 949b5552ca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CDBD63C43A30BB95
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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