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