mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-17 23:53:26 +02:00
Added stats updator functionality w. GH actions
This commit is contained in:
@@ -6,11 +6,12 @@ with open("source/data/applications.json", "r", encoding="utf-8") as file:
|
||||
|
||||
# Add "flags" and "stars" properties to each application
|
||||
for app in data.get("applications", []):
|
||||
app["stars"] = ""
|
||||
app["flags"] = ""
|
||||
app["last_commit"] = ""
|
||||
app["language"] = ""
|
||||
app["license"] = ""
|
||||
|
||||
# Save the updated JSON back to the 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!")
|
||||
print("Operation successful: applications.json updated")
|
||||
|
||||
Reference in New Issue
Block a user