Skip to content

Commit

Permalink
Fix pagination error for item query
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotfritz98 committed Jan 14, 2025
1 parent 024dfe3 commit 0fae74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion muse_for_anything/db/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_page_info(
if cursor is not None:
# always include cursor row
query_filter = or_(cursor_column == cursor, and_(*filter_criteria))
item_query = model.query.filter(query_filter).order_by(order_by)
item_query = model.query.filter(query_filter).order_by(*order_by)
cursor_row_subq = (
DB.session.query(
row_numbers.label("row"),
Expand Down

0 comments on commit 0fae74d

Please sign in to comment.