mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-21 16:25:40 +02:00
Moved data files into static and dynamic
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user