and now unbroken
gitea/wcs/pipeline/head This commit looks good Details

This commit is contained in:
Pierre Ducroquet 2024-03-05 10:33:06 +01:00
parent ac991e24c0
commit a9f810689b
1 changed files with 1 additions and 1 deletions

View File

@ -4995,7 +4995,7 @@ class SearchableFormDef(SqlMixin):
def search(cls, obj_type, string):
_, cur = get_connection_and_cursor()
cur.execute(
'SELECT object_id FROM searchable_formdefs WHERE fts @@ plainto_tsquery(%s)',
'SELECT object_id FROM searchable_formdefs WHERE fts @@ wcs_tsquery(%s)',
(FtsMatch.get_fts_value(string),),
)
ids = [x[0] for x in cur.fetchall()]