Compare commits
2 commits
210cdff15e
...
6cb6d988e9
Author | SHA1 | Date | |
---|---|---|---|
|
6cb6d988e9 | ||
|
608c71708f |
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ Persistence: Even if the script is rerun, previously assigned UIDs remain consis
|
||||||
## example CSV file format
|
## example CSV file format
|
||||||
|
|
||||||
```
|
```
|
||||||
Gastgeber;Description;Date;start time;end time;Location
|
Host;Description;Date;start time;end time;Location
|
||||||
Max Müller;Team Meeting;20.11.2024;10:00;11:00;Berlin
|
Max Müller;Team Meeting;20.11.2024;10:00;11:00;Berlin
|
||||||
Anna Löwe;Project Kickoff;21.11.2024;09:00;10:30;München
|
Anna Löwe;Project Kickoff;21.11.2024;09:00;10:30;München
|
||||||
```
|
```
|
||||||
|
|
|
@ -40,7 +40,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['Gastgeber']
|
host = row['Host']
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue