Skip to content
Snippets Groups Projects

from http to https

Merged Antoine Gaudron-Desjardins requested to merge fix_https into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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:
Loading