Skip to content

Commit b5a6765

Browse files
dunkeronipsychedelicious
authored andcommitted
also search image creation date
1 parent 3704573 commit b5a6765

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

invokeai/app/services/image_records/image_records_sqlite.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,13 @@ def get_many(
196196
# Search term condition
197197
if search_term:
198198
query_conditions += """--sql
199-
AND images.metadata LIKE ?
199+
AND (
200+
images.metadata LIKE ?
201+
OR images.created_at LIKE ?
202+
)
200203
"""
201204
query_params.append(f"%{search_term.lower()}%")
205+
query_params.append(f"%{search_term.lower()}%")
202206

203207
if starred_first:
204208
query_pagination = f"""--sql

0 commit comments

Comments
 (0)