mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-17 21:54:05 +02:00
Updated directories in stats updator script to reflect working dir
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user