fix linting issue

This commit is contained in:
Sarah Hoffmann
2022-02-18 23:24:50 +01:00
parent 0a9f971e44
commit 92bc3cd0a7

View File

@@ -119,7 +119,8 @@ class LegacyICUTokenizer(AbstractTokenizer):
if not conn.table_exists('search_name'):
return
with conn.cursor(name="hnr_counter") as cur:
cur.execute("""SELECT DISTINCT word_id, coalesce(info->>'lookup', word_token) FROM word
cur.execute("""SELECT DISTINCT word_id, coalesce(info->>'lookup', word_token)
FROM word
WHERE type = 'H'
AND NOT EXISTS(SELECT * FROM search_name
WHERE ARRAY[word.word_id] && name_vector)