From bdc4bdc97eecf49f40bff5c8289818724b292764 Mon Sep 17 00:00:00 2001 From: fram3d Date: Mon, 5 Aug 2024 12:36:54 +0200 Subject: [PATCH] add links to ical events --- prep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prep.py b/prep.py index 2c4929d0..4826ea7e 100755 --- a/prep.py +++ b/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) event_template = event_template.replace("", date) event_template = event_template.replace("", title) + event_template = event_template.replace("", url) events_ical += event_template # Footer