From 287be0ae7684221f068e73d1d1d8139f3e0bc04b Mon Sep 17 00:00:00 2001 From: Ayush Gupta Date: Fri, 5 Jun 2026 21:35:42 +0530 Subject: [PATCH 1/2] fix: resolve 500 errors on home and project pages - Initialize global cache variables in data_loader.py - Fix duplicate project IDs in projects.json - Replace Django escapejs with Jinja tojson filter in project.html --- data/projects.json | 4 ++-- templates/project.html | 2 +- utils/data_loader.py | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/data/projects.json b/data/projects.json index e92836c6..ae369120 100644 --- a/data/projects.json +++ b/data/projects.json @@ -312,7 +312,7 @@ "starter_code": "starter_code/password_checker.py" }, { - "id": 9, + "id": 30, "title": "Feedback Survey Form", "skills": ["HTML"], "level": "Beginner", @@ -338,7 +338,7 @@ "starter_code": "starter_code/survey_form/index.html" }, { - "id": 10, + "id": 31, "title": "API ETL Pipeline", "skills": ["Python", "pandas", "requests"], "level": "Intermediate", diff --git a/templates/project.html b/templates/project.html index 5a07ac1e..3acf1521 100644 --- a/templates/project.html +++ b/templates/project.html @@ -476,7 +476,7 @@