From 390dc47db575a985a8453214726b2ad112d095d7 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:49:25 +1000 Subject: [PATCH] feat(app): transform search term to lowercase --- invokeai/app/services/image_records/image_records_sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/services/image_records/image_records_sqlite.py b/invokeai/app/services/image_records/image_records_sqlite.py index 87b1b48d19..82e7ffae9d 100644 --- a/invokeai/app/services/image_records/image_records_sqlite.py +++ b/invokeai/app/services/image_records/image_records_sqlite.py @@ -217,7 +217,7 @@ class SqliteImageRecordStorage(ImageRecordStorageBase): query_conditions += """--sql AND images.metadata LIKE ? """ - query_params.append(f"%{search_term}%") + query_params.append(f"%{search_term.lower()}%") if starred_first: query_pagination = f"""--sql