From f9713e7ee0802fbce7ec961ec1a48dd13ee3c052 Mon Sep 17 00:00:00 2001 From: ivdv Date: Fri, 29 Sep 2023 12:12:55 -0700 Subject: [PATCH] Support for commas --- prep.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prep.py b/prep.py index 592e072..d94e0c1 100755 --- a/prep.py +++ b/prep.py @@ -9,9 +9,10 @@ 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: + print(event) event_date = event[0] event_date_parsed = datetime.strptime(event_date, "%d-%m-%Y").date() event_time = event[1]