Skip to content

Commit

Permalink
fix quotes issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dtemkin1 committed Jul 28, 2024
1 parent 27ee53e commit 941b28d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions process.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def process_csv(filename: str) -> list[dict]:
event_end = datetime.datetime.fromisoformat(event["end"])

if event_end < event_start:
errors.append(f"{event["name"]} @ {", ".join(event["dorm"])} has an end time before its start time!")
errors.append(
f"{event['name']} @ {', '.join(event['dorm'])} has an end time before its start time!"
)
# raise Exception(event["name"] + " has an end time before its start time!")
continue

Expand All @@ -119,7 +121,7 @@ def process_csv(filename: str) -> list[dict]:
or (event_start < mandatory_event_end <= event_end)
):
errors.append(
f"{event["name"]} @ {", ".join(event["dorm"])} conflicts with {mandatory_event["name"]}"
f"{event['name']} @ {', '.join(event['dorm'])} conflicts with {mandatory_event['name']}"
)
continue

Expand Down

0 comments on commit 941b28d

Please sign in to comment.