From 86741f4246ea9ce91e9a54067f025908dda16e8d Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 29 Nov 2024 19:02:56 +0100 Subject: [PATCH] Fix ical location --- prep.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/prep.py b/prep.py index 7d052f4..d292294 100755 --- a/prep.py +++ b/prep.py @@ -107,7 +107,13 @@ def build_ical(events: list[dict]) -> str: event_template = event_template.replace("", date) event_template = event_template.replace("", title) event_template = event_template.replace("", url) - event_template = event_template.replace("", location) + if location.startswith("DC Krov"): + event_template = event_template.replace("", "DC Krov\\, Kraljice Marije 47\\, 6\\, Beograd\\, Serbia") + elif location.startswith("Matematički fakultet (Učionica 153)"): + event_template = event_template.replace("", "Matematički fakultet\\, Svetog Nikole 39\\, Beograd\\, Serbia") + else: + event_template = event_template.replace("", "") + events_ical += event_template # Footer