Skip to content

Commit

Permalink
Merge branch 'main' into tile-preprocessor-sdxl
Browse files Browse the repository at this point in the history
  • Loading branch information
blessedcoolant committed Jun 29, 2024
2 parents cc3dbf6 + 5d1f6db commit 182e2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invokeai/app/services/image_records/image_records_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ def get_many(

if starred_first:
query_pagination = f"""--sql
ORDER BY images.starred DESC, images.created_at {order_dir} LIMIT ? OFFSET ?
ORDER BY images.starred DESC, images.created_at {order_dir.value} LIMIT ? OFFSET ?
"""
else:
query_pagination = f"""--sql
ORDER BY images.created_at {order_dir} LIMIT ? OFFSET ?
ORDER BY images.created_at {order_dir.value} LIMIT ? OFFSET ?
"""

# Final images query with pagination
Expand Down

0 comments on commit 182e2fd

Please sign in to comment.