[ical] Add fallback on event location
This commit is contained in:
2
prep.py
2
prep.py
@@ -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