Skip to content

Commit 182e2fd

Browse files
Merge branch 'main' into tile-preprocessor-sdxl
2 parents cc3dbf6 + 5d1f6db commit 182e2fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/app/services/image_records/image_records_sqlite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ def get_many(
213213

214214
if starred_first:
215215
query_pagination = f"""--sql
216-
ORDER BY images.starred DESC, images.created_at {order_dir} LIMIT ? OFFSET ?
216+
ORDER BY images.starred DESC, images.created_at {order_dir.value} LIMIT ? OFFSET ?
217217
"""
218218
else:
219219
query_pagination = f"""--sql
220-
ORDER BY images.created_at {order_dir} LIMIT ? OFFSET ?
220+
ORDER BY images.created_at {order_dir.value} LIMIT ? OFFSET ?
221221
"""
222222

223223
# Final images query with pagination

0 commit comments

Comments
 (0)