Use LIKE instead of =.
This commit is contained in:
parent
a99de3a859
commit
863efdd84c
|
@ -124,7 +124,7 @@ def select_frames(conn, n, from_, url_params):
|
||||||
field_where = dictfilt(url_params, db_fields)
|
field_where = dictfilt(url_params, db_fields)
|
||||||
# Then loop through fields to create query parts
|
# Then loop through fields to create query parts
|
||||||
# From https://stackoverflow.com/a/73512269/2152245
|
# From https://stackoverflow.com/a/73512269/2152245
|
||||||
field_where_str = ' AND '.join([f'"{k}" = \'{v}\'' for k,v in field_where.items()])
|
field_where_str = ' AND '.join([f'"{k}" LIKE \'{v}\'' for k,v in field_where.items()])
|
||||||
|
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
# Workaround to deal with missing value in WHERE
|
# Workaround to deal with missing value in WHERE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user