From 9b57486e04e58bab4a8888c23323f7266215bda5 Mon Sep 17 00:00:00 2001 From: Belissimo_T Date: Fri, 2 Aug 2024 22:24:42 +0200 Subject: [PATCH] ical III (cherry picked from commit 3e0225c046ab1382a5faa1efcb0c54274bc86241) --- endpoints/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/endpoints/api.py b/endpoints/api.py index d4f6f0d..d0c7cef 100644 --- a/endpoints/api.py +++ b/endpoints/api.py @@ -187,6 +187,9 @@ def generate_html_list(elements: list[str]) -> str: calendar = icalendar.Calendar() calendar.add("x-wr-calname", f"NICHT UNTERSTÜTZT :( {fav['name']} (vplan.fr)") calendar.add("x-wr-caldesc", description + "\nAktuell werden leider nur Klassenpläne unterstützt. :(") + calendar.add("x-wr-timezone", "Europe/Berlin") + calendar.add("prodid", "-//VPlan FR//vplan.fr//DE") + calendar.add("version", "2.0") return Response( calendar.to_ical(), @@ -196,6 +199,9 @@ def generate_html_list(elements: list[str]) -> str: calendar = icalendar.Calendar() calendar.add("x-wr-calname", f"{fav['name']} (vplan.fr)") calendar.add("x-wr-caldesc", description) + calendar.add("x-wr-timezone", "Europe/Berlin") + calendar.add("prodid", "-//VPlan FR//vplan.fr//DE") + calendar.add("version", "2.0") today = datetime.date.today() for date in cache.get_days():