Moved data files into static and dynamic

This commit is contained in:
Lucas
2025-10-16 13:57:14 -07:00
parent 4e56301dfb
commit 0beb55ffed
15 changed files with 21 additions and 21 deletions

View File

@@ -3,7 +3,7 @@ import requests
import json
from datetime import datetime
with open('source/data/applications.json', 'r') as f:
with open('source/data/dynamic/applications.json', 'r') as f:
data = json.load(f)
GITHUB_TOKEN = os.getenv('GITHUB_TOKEN')
@@ -56,7 +56,7 @@ def update_application_data(app):
for app in data['applications']:
app = update_application_data(app)
with open('source/data/applications.json', 'w') as f:
with open('source/data/dynamic/applications.json', 'w') as f:
json.dump(data, f, indent=4)
print("Updated application data successfully!")