Skip to content

The definitive list of the best of (consumer facing) open source.

Updated dir for new structure

Lucasdf7414b9db31
diff --git a/core/source/generation/contents_generator.py b/core/source/generation/contents_generator.py
index 7298e16..9bc6600 100644
--- a/core/source/generation/contents_generator.py
+++ b/core/source/generation/contents_generator.py
@@ -28,7 +28,7 @@ def format_stars(n):
def generate_contents(platform="all"):
with open("data/static/categories.json", "r", encoding="utf-8") as f:
cat_data = json.load(f)
- with open("data/dynamic/applications.json", "r", encoding="utf-8") as f:
+ with open("data/dynamic/applications_generated.json", "r", encoding="utf-8") as f:
app_data = json.load(f)
with open("data/static/tags.json", "r", encoding="utf-8") as f:
tags_data = json.load(f)
diff --git a/core/source/generation/mainheader_generator.py b/core/source/generation/mainheader_generator.py
index 826b573..f51bef4 100644
--- a/core/source/generation/mainheader_generator.py
+++ b/core/source/generation/mainheader_generator.py
@@ -3,7 +3,7 @@ import json
# Generates mainheader with dynamic project count
def generate_mainheader():
- with open("data/dynamic/applications.json", "r", encoding="utf-8") as f:
+ with open("data/dynamic/applications_generated.json", "r", encoding="utf-8") as f:
data = json.load(f)
project_count = len(data.get("applications", []))
diff --git a/core/source/maintenance/json_formatter.py b/core/source/maintenance/json_formatter.py
index 17dd3e9..ea1eb66 100644
--- a/core/source/maintenance/json_formatter.py
+++ b/core/source/maintenance/json_formatter.py
@@ -1,6 +1,6 @@
import json
-with open("data/dynamic/applications.json") as f:
+with open("data/static/applications.json") as f:
applications = json.load(f)["applications"]
with open("data/static/categories.json") as f:
diff --git a/core/source/maintenance/status_checker.py b/core/source/maintenance/status_checker.py
index 0665c1c..2556c81 100644
--- a/core/source/maintenance/status_checker.py
+++ b/core/source/maintenance/status_checker.py
@@ -4,7 +4,7 @@ from datetime import datetime, timedelta
import requests
-INPUT_FILE = "data/dynamic/applications.json"
+INPUT_FILE = "data/static/applications.json"
OUTPUT_FILE = "../resources/maintenance/status_maintenance.md"
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")