We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f8ee03 + 45a230e commit f394e31Copy full SHA for f394e31
app.py
@@ -362,8 +362,10 @@ def getAccessPointsPaginated(page_num):
362
access_point_json,
363
db.session.execute(
364
db.select(AccessPoint)
365
+ .join(Location, AccessPoint.location_id == Location.id)
366
+ .join(Building, Location.building_id == Building.id)
367
.where(AccessPoint.active)
- .order_by(AccessPoint.id.asc())
368
+ .order_by(Building.name.asc(), Location.nickname.asc())
369
.offset(page_num * app.config["ITEMSPERPAGE"])
370
.limit(app.config["ITEMSPERPAGE"])
371
).scalars(),
0 commit comments