Skip to content

The definitive list of the best of (consumer facing) open source.

Updated directories in stats updator script to reflect working dir

Lucasd01ea73d1be1
diff --git a/core/source/maintenance/stats_updator.py b/core/source/maintenance/stats_updator.py
index 43be6e9..f3c6f6f 100644
--- a/core/source/maintenance/stats_updator.py
+++ b/core/source/maintenance/stats_updator.py
@@ -4,7 +4,7 @@ from datetime import datetime
import requests
-with open("core/data/dynamic/applications.json", "r") as f:
+with open("data/dynamic/applications.json", "r") as f:
data = json.load(f)
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
@@ -62,7 +62,7 @@ def update_application_data(app):
for app in data["applications"]:
app = update_application_data(app)
-with open("core/data/dynamic/applications.json", "w") as f:
+with open("data/dynamic/applications.json", "w") as f:
json.dump(data, f, indent=4)
print("Updated application data successfully!")