Added stars and flags to applications.json

This commit is contained in:
Lucas
2025-03-26 14:14:41 -07:00
parent df7b904feb
commit c5f913c616
2 changed files with 5233 additions and 4391 deletions

View File

@@ -1,16 +1,16 @@
import json
# Load the JSON file
with open("applications.json", "r", encoding="utf-8") as file:
with open("source/data/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"] = ""
app["flags"] = ""
# Save the updated JSON back to the file
with open("applications.json", "w", encoding="utf-8") as file:
with open("source/data/applications.json", "w", encoding="utf-8") as file:
json.dump(data, file, indent=4, ensure_ascii=False)
print("Updated applications.json successfully!")