forked from Decentrala/website
[ical] Add fallback on event location
This commit is contained in:
1 parent
c2e4e64ece
commit
886b4aae1a
1 file changed
+1
-1
@@ -112,7 +112,7 @@ def build_ical(events: list[dict]) -> str:
|
|||||||
elif location.startswith("Matematički fakultet (Učionica 153)"):
|
elif location.startswith("Matematički fakultet (Učionica 153)"):
|
||||||
event_template = event_template.replace("<!--LOCATION-->", "Matematički fakultet\\, Svetog Nikole 39\\, Beograd\\, Serbia")
|
event_template = event_template.replace("<!--LOCATION-->", "Matematički fakultet\\, Svetog Nikole 39\\, Beograd\\, Serbia")
|
||||||
else:
|
else:
|
||||||
event_template = event_template.replace("<!--LOCATION-->", "")
|
event_template = event_template.replace("<!--LOCATION-->", location)
|
||||||
|
|
||||||
|
|
||||||
events_ical += event_template
|
events_ical += event_template
|
||||||
|
|||||||
Reference in new issue
Block a user