feat(api): fixed autocomplete redundant values
This commit is contained in:
parent
926e91e6cb
commit
77bf304fcd
1 changed files with 1 additions and 1 deletions
|
|
@ -432,7 +432,7 @@ def __get_autocomplete_table(value, project_id):
|
|||
AND value ILIKE %(value)s
|
||||
LIMIT 5)""")
|
||||
with pg_client.PostgresClient() as cur:
|
||||
query = cur.mogrify("UNION ALL".join(sub_queries) + ";",
|
||||
query = cur.mogrify(" UNION ".join(sub_queries) + ";",
|
||||
{"project_id": project_id, "value": helper.string_to_sql_like(value),
|
||||
"svalue": helper.string_to_sql_like("^" + value)})
|
||||
cur.execute(query)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue