Skip to content

Commit

Permalink
fix: Order categories alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
noahpistilli committed Jun 30, 2024
1 parent 9ff25d2 commit 7480363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion url1/category_n.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def list_category_n(list_id):
queried_data = (
db.session.query(Categories, Rooms)
.filter(Categories.sp_page_id == Rooms.room_id)
.order_by(Categories.category_id)
.order_by(Categories.name.asc())
.limit(64)
.all()
)
results = []
Expand Down

0 comments on commit 7480363

Please sign in to comment.