diff --git a/csv-to-ics.py b/csv-to-ics.py index 1b1cf14..9ac8a35 100644 --- a/csv-to-ics.py +++ b/csv-to-ics.py @@ -31,9 +31,11 @@ def generate_ical_from_csv(csv_file): # Combine date and time using the updated date format and apply CET start_datetime = cet.localize(datetime.strptime(f"{date} {start_time}", "%d.%m.%Y %H:%M")) end_datetime = cet.localize(datetime.strptime(f"{date} {end_time}", "%d.%m.%Y %H:%M")) - + uid = f"{date}{start_time}@lak2024.leben-in-gross-doelln.de" # Create a new event event = Event() + event.created = cet.localize(datetime.now()) + event.uid = uid event.name = f"{description} (Gastgeber: {host})" # Include the host in the event name event.begin = start_datetime event.end = end_datetime