From aebf3c7df4b7294ad673851f36eebc3a780a581d Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sun, 25 Aug 2024 20:49:49 +0200 Subject: [PATCH] Include description --- personal_data_calendar/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/personal_data_calendar/__main__.py b/personal_data_calendar/__main__.py index 62ac194..373b62f 100644 --- a/personal_data_calendar/__main__.py +++ b/personal_data_calendar/__main__.py @@ -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)