Skip to content
Snippets Groups Projects
Commit 610ad440 authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

fix mistake

parent df71df94
Branches
No related tags found
1 merge request!31from http to https
Pipeline #43989 passed
...@@ -282,7 +282,7 @@ def delete_opening_hours(id: int, db: Session): ...@@ -282,7 +282,7 @@ def delete_opening_hours(id: int, db: Session):
def get_restaurants(db: Session): def get_restaurants(db: Session):
current_date = datetime.now(tz=pytz.timezone("Europe/Paris")) current_date = datetime.now(tz=pytz.timezone("Europe/Paris"))
weekday, current_time = current_date.weekday(), current_date.time() weekday, current_time = current_date.weekday(), current_date.time()
restaurant_names = [r.place for r in db.query(models.OpeningHours.place.distinct).distinct()] restaurant_names = [r.place for r in db.query(models.OpeningHours.place).distinct()]
restaurants = [] restaurants = []
for name in restaurant_names: for name in restaurant_names:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment