diff --git a/backend/db/crud.py b/backend/db/crud.py index 1d0ed8e9a2e19c5133148f981ed09997a4451c7c..c117c224b451d63bba52dba474bb76ebf71e0da4 100644 --- a/backend/db/crud.py +++ b/backend/db/crud.py @@ -165,7 +165,7 @@ def get_current_graph(place: str, db: Session): if first_timeslot and current_time <= first_timeslot[0]: return [], None, None elif first_timeslot and current_time <= first_timeslot[1]: - points = get_current_graph_points(place, day, first_timeslot[0], current_time, timedelta(minutes=5), db) + points = get_current_graph_points(place, day, first_timeslot[0], current_time, timedelta(minutes=5), db) start_time = 60 * first_timeslot[0].hour + first_timeslot[0].minute end_time = 60 * first_timeslot[1].hour + first_timeslot[1].minute return points, start_time, end_time @@ -173,7 +173,7 @@ def get_current_graph(place: str, db: Session): if second_timeslot and current_time <= second_timeslot[0]: return [], None, None elif second_timeslot and current_time <= second_timeslot[1]: - points = get_current_graph_points(place, day, second_timeslot[0], current_time, timedelta(minutes=5), db) + points = get_current_graph_points(place, day, second_timeslot[0], current_time, timedelta(minutes=5), db) start_time = 60 * second_timeslot[0].hour + second_timeslot[0].minute end_time = 60 * second_timeslot[1].hour + second_timeslot[1].minute return points, start_time, end_time