mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fix linting issue
This commit is contained in:
@@ -119,7 +119,8 @@ class LegacyICUTokenizer(AbstractTokenizer):
|
|||||||
if not conn.table_exists('search_name'):
|
if not conn.table_exists('search_name'):
|
||||||
return
|
return
|
||||||
with conn.cursor(name="hnr_counter") as cur:
|
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'
|
WHERE type = 'H'
|
||||||
AND NOT EXISTS(SELECT * FROM search_name
|
AND NOT EXISTS(SELECT * FROM search_name
|
||||||
WHERE ARRAY[word.word_id] && name_vector)
|
WHERE ARRAY[word.word_id] && name_vector)
|
||||||
|
|||||||
Reference in New Issue
Block a user