[ical] Add fallback on event location

This commit is contained in:
2026-02-10 12:56:04 +01:00
parent c2e4e64ece
commit 886b4aae1a

View File

@@ -112,7 +112,7 @@ def build_ical(events: list[dict]) -> str:
elif location.startswith("Matematički fakultet (Učionica 153)"):
event_template = event_template.replace("<!--LOCATION-->", "Matematički fakultet\\, Svetog Nikole 39\\, Beograd\\, Serbia")
else:
event_template = event_template.replace("<!--LOCATION-->", "")
event_template = event_template.replace("<!--LOCATION-->", location)
events_ical += event_template