feat(app): transform search term to lowercase

This commit is contained in:
psychedelicious 2024-07-01 19:49:25 +10:00
parent 20d5c3a8bf
commit 390dc47db5

View File

@ -217,7 +217,7 @@ class SqliteImageRecordStorage(ImageRecordStorageBase):
query_conditions += """--sql query_conditions += """--sql
AND images.metadata LIKE ? AND images.metadata LIKE ?
""" """
query_params.append(f"%{search_term}%") query_params.append(f"%{search_term.lower()}%")
if starred_first: if starred_first:
query_pagination = f"""--sql query_pagination = f"""--sql