(api) simplify query

This commit is contained in:
maryhipp 2024-06-30 20:54:08 -04:00 committed by psychedelicious
parent b65ed8e8f2
commit 134d831ebf

View File

@ -215,7 +215,7 @@ class SqliteImageRecordStorage(ImageRecordStorageBase):
# Search term condition
if search_term:
query_conditions += """--sql
AND json_extract(images.metadata, '$') LIKE ?
AND images.metadata LIKE ?
"""
query_params.append(f"%{search_term}%")