From df7b904febb7a7439ecd6d061014d4d2f60aeeff Mon Sep 17 00:00:00 2001 From: Lucas <169063936+mustbeperfect@users.noreply.github.com> Date: Wed, 26 Mar 2025 13:50:13 -0700 Subject: [PATCH] Added ARCHITECTURE and HUB.md --- resources/HUB.md | 0 resources/dev/ARCHITECTURE.md | 0 source/scripts/utils/json_mod.py | 16 ++++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 resources/HUB.md create mode 100644 resources/dev/ARCHITECTURE.md create mode 100644 source/scripts/utils/json_mod.py diff --git a/resources/HUB.md b/resources/HUB.md new file mode 100644 index 0000000..e69de29 diff --git a/resources/dev/ARCHITECTURE.md b/resources/dev/ARCHITECTURE.md new file mode 100644 index 0000000..e69de29 diff --git a/source/scripts/utils/json_mod.py b/source/scripts/utils/json_mod.py new file mode 100644 index 0000000..369363c --- /dev/null +++ b/source/scripts/utils/json_mod.py @@ -0,0 +1,16 @@ +import json + +# Load the JSON file +with open("applications.json", "r", encoding="utf-8") as file: + data = json.load(file) + +# Add "flags" and "stars" properties to each application +for app in data.get("applications", []): + app["flags"] = "" + app["stars"] = "" + +# Save the updated JSON back to the file +with open("applications.json", "w", encoding="utf-8") as file: + json.dump(data, file, indent=4, ensure_ascii=False) + +print("Updated applications.json successfully!")