mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-25 18:25:40 +02:00
Pointed script to new directory for data
This commit is contained in:
@@ -4,7 +4,7 @@ import json
|
||||
from datetime import datetime
|
||||
import os
|
||||
|
||||
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')
|
||||
@@ -57,7 +57,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