Merge pull request 'Support for commas in csv' (#21) from ivdv/website:csv-comma into master

lepo :D
This commit is contained in:
svitvojimilioni 2023-10-01 16:27:08 +00:00
commit ac0d32559c

View File

@ -9,7 +9,7 @@ DAYS_EN = ["MON ", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
def load_events(csv_path:str) -> list[dict]:
events = []
with open(csv_path) as csv_file:
csv_reader = csv.reader(csv_file)
csv_reader = csv.reader(csv_file, skipinitialspace=True)
next(csv_reader, None)
for event in csv_reader:
event_date = event[0]