mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-18 03:54:10 +02:00
Added ARCHITECTURE and HUB.md
This commit is contained in:
16
source/scripts/utils/json_mod.py
Normal file
16
source/scripts/utils/json_mod.py
Normal file
@@ -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!")
|
||||
Reference in New Issue
Block a user