Compare commits

...

1 Commits

Author SHA1 Message Date
7df04ecf71
Support for commas 2023-09-29 12:27:11 -07:00

View File

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