Skip to content
Snippets Groups Projects
Commit a16df1fb authored by Aymeric Chaumont's avatar Aymeric Chaumont
Browse files

Merge branch 'small_fix' into 'main'

fix css for button in mobile phone and order for timetable

See merge request !43
parents bdaa59de 27436960
No related branches found
No related tags found
1 merge request!43fix css for button in mobile phone and order for timetable
Pipeline #44355 failed
......@@ -252,8 +252,11 @@ def get_restaurants(db: Session):
restaurants = []
for place in places:
opening_hours = db.query(models.OpeningHours).filter(
models.OpeningHours.place == place.place, models.OpeningHours.day == weekday).all()
opening_hours = db.query(
models.OpeningHours).filter(
models.OpeningHours.place == place.place,
models.OpeningHours.day == weekday).order_by(
models.OpeningHours.open_time).all()
opening_hours_formated = [
f"{row.open_time.strftime('%Hh%M')}-{row.close_time.strftime('%Hh%M')}" for row in opening_hours]
timetable = "/".join(opening_hours_formated)
......
......@@ -129,7 +129,7 @@
top: 0;
height: 3rem;
width: 3rem;
margin: 1rem;
margin: 0.5rem;
padding: 0.5rem;
border-radius: 5px;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment