mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-17 23:53:26 +02:00
Pointed script to new directory for data
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import json
|
||||
|
||||
with open("core/data/dynamic/applications.json") as f:
|
||||
with open("../../data/dynamic/applications.json") as f:
|
||||
applications = json.load(f)["applications"]
|
||||
|
||||
with open("core/data/static/categories.json") as f:
|
||||
with open("../../data/static/categories.json") as f:
|
||||
categories_data = json.load(f)["subcategories"]
|
||||
valid_categories = {c["id"].lower() for c in categories_data}
|
||||
|
||||
with open("core/data/static/platforms.json") as f:
|
||||
with open("../../data/static/platforms.json") as f:
|
||||
platforms_data = json.load(f)["platforms"]
|
||||
valid_platforms = {p["id"].lower() for p in platforms_data}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user