Include description
This commit is contained in:
parent
7c1d6003f4
commit
aebf3c7df4
|
@ -35,9 +35,12 @@ def generate_calendar(rows: list[dict]) -> icalendar.Calendar:
|
|||
if date is None:
|
||||
continue
|
||||
|
||||
description = '\n\n'.join(event_data[k] for k in possible_name_keys)
|
||||
|
||||
# Create event
|
||||
event = icalendar.Event()
|
||||
event.add('summary', title)
|
||||
event.add('description', description)
|
||||
event.add('dtstart', date)
|
||||
event.add('dtend', date)
|
||||
event.add('created', NOW)
|
||||
|
|
Loading…
Reference in New Issue
Block a user