Sort that JSON

This commit is contained in:
decentral1se 2021-05-02 22:14:15 +02:00
parent a8b5fb5c1e
commit 39a7fc04fb
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 7 additions and 1 deletions

View File

@ -284,7 +284,13 @@ def main():
target = f"{SCRIPT_PATH}/../deploy/apps.coopcloud.tech/apps.json"
with open(target, "w", encoding="utf-8") as handle:
dump(generate_apps_json(repos_json), handle, ensure_ascii=False, indent=4)
dump(
generate_apps_json(repos_json),
handle,
ensure_ascii=False,
indent=4,
sort_keys=True,
)
log.info(f"Successfully generated {target}")