diff --git a/client/src/components/LandingPage.svelte b/client/src/components/LandingPage.svelte index 8a68a98..1c3eec9 100644 --- a/client/src/components/LandingPage.svelte +++ b/client/src/components/LandingPage.svelte @@ -143,7 +143,7 @@

Freie Räume

-
+
Raum-Übersicht in Better VPlan
diff --git a/endpoints/api.py b/endpoints/api.py index 7ffe3f4..ac8e7cf 100644 --- a/endpoints/api.py +++ b/endpoints/api.py @@ -102,7 +102,11 @@ def plan(school_num: str) -> Response: default_plan_data = json.loads(cache.get_meta_file("default_plan.json")) newest_date = cache.get_days()[0] - newest_date_week = json.loads(cache.get_plan_file(newest_date, ".newest", "_default_plan.json"))["week"] + try: + newest_date_week = json.loads(cache.get_plan_file(newest_date, ".newest", "_default_plan.json"))["week"] + except FileNotFoundError: + # TODO temporary fix oops, use newest _default_plan.json instead + return send_error("No default plan available for this date.") week = vplan_utils.get_future_week( holidays=holidays, diff --git a/requirements.txt b/requirements.txt index 311cf7a..2823a8b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,5 @@ Werkzeug~=2.3.6 discord-webhook~=1.3.0 brotlicffi~=1.1.0.0 pywebpush~=1.14.0 -py-vapid~=1.9.0 \ No newline at end of file +py-vapid~=1.9.0 +aiohttp~=3.9.3 \ No newline at end of file