Skip to content

Commit

Permalink
ical III
Browse files Browse the repository at this point in the history
(cherry picked from commit 3e0225c)
  • Loading branch information
Belissimo-T committed Aug 2, 2024
1 parent 780a630 commit 9b57486
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions endpoints/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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():
Expand Down

0 comments on commit 9b57486

Please sign in to comment.