add links to ical events
This commit is contained in:
parent
9063f5d854
commit
bdc4bdc97e
2
prep.py
2
prep.py
@ -91,6 +91,7 @@ def build_ical(events: list[dict]) -> str:
|
||||
location = event["location"]
|
||||
date = event["date"]
|
||||
time = event["time"]
|
||||
url = event["link"]
|
||||
|
||||
uid = str(date.month).zfill(2) + str(date.day).zfill(2) + time[:2]
|
||||
date = str(date.year) + str(date.month).zfill(2) + str(date.day).zfill(2)
|
||||
@ -104,6 +105,7 @@ def build_ical(events: list[dict]) -> str:
|
||||
event_template = event_template.replace("<!--CREATED-->", created)
|
||||
event_template = event_template.replace("<!--DATE-->", date)
|
||||
event_template = event_template.replace("<!--TITLE-->", title)
|
||||
event_template = event_template.replace("<!--URL-->", url)
|
||||
|
||||
events_ical += event_template
|
||||
# Footer
|
||||
|
Loading…
Reference in New Issue
Block a user