1
0

Include description

This commit is contained in:
Jon Michael Aanes 2024-08-25 20:49:49 +02:00
parent 7c1d6003f4
commit aebf3c7df4
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -35,9 +35,12 @@ def generate_calendar(rows: list[dict]) -> icalendar.Calendar:
if date is None: if date is None:
continue continue
description = '\n\n'.join(event_data[k] for k in possible_name_keys)
# Create event # Create event
event = icalendar.Event() event = icalendar.Event()
event.add('summary', title) event.add('summary', title)
event.add('description', description)
event.add('dtstart', date) event.add('dtstart', date)
event.add('dtend', date) event.add('dtend', date)
event.add('created', NOW) event.add('created', NOW)