Support for commas

This commit is contained in:
ivdv 2023-09-29 12:12:55 -07:00
parent 25662d7bda
commit 7df04ecf71
Signed by: ivdv
GPG Key ID: 47917E8659809E1E

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]