From 7df04ecf71845f64a83f2d6597bc1e1921690bb3 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prep.py b/prep.py index 592e072..03633dc 100755 --- a/prep.py +++ b/prep.py @@ -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]