changed Host to Gastgeber
This commit is contained in:
parent
03e2ca94b7
commit
48e601f916
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ def generate_ical_from_csv(csv_file):
|
||||||
for row in reader:
|
for row in reader:
|
||||||
try:
|
try:
|
||||||
# Parse the data from CSV
|
# Parse the data from CSV
|
||||||
host = row['Host']
|
host = row['Gastgeber']
|
||||||
description = row['Description']
|
description = row['Description']
|
||||||
date = row['Date'].strip() # Expected format: DD.MM.YYYY
|
date = row['Date'].strip() # Expected format: DD.MM.YYYY
|
||||||
start_time = row['start time'].strip() # Expected format: HH:MM
|
start_time = row['start time'].strip() # Expected format: HH:MM
|
||||||
|
@ -34,7 +34,7 @@ def generate_ical_from_csv(csv_file):
|
||||||
|
|
||||||
# Create a new event
|
# Create a new event
|
||||||
event = Event()
|
event = Event()
|
||||||
event.name = f"{description} (Host: {host})" # Include the host in the event name
|
event.name = f"{description} (Gastgeber: {host})" # Include the host in the event name
|
||||||
event.begin = start_datetime
|
event.begin = start_datetime
|
||||||
event.end = end_datetime
|
event.end = end_datetime
|
||||||
event.location = location
|
event.location = location
|
||||||
|
|
Loading…
Reference in a new issue