]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix linting issue
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 18 Feb 2022 22:24:50 +0000 (23:24 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 1 Mar 2022 08:34:32 +0000 (09:34 +0100)
nominatim/tokenizer/icu_tokenizer.py

index b20b32d9a00593183b8d3f74965e71a97d72ad0e..f5c66bc0f1beb8f17853287004c8c4b920d94188 100644 (file)
@@ -119,7 +119,8 @@ class LegacyICUTokenizer(AbstractTokenizer):
             if not conn.table_exists('search_name'):
                 return
             with conn.cursor(name="hnr_counter") as cur:
             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)
                                WHERE type = 'H'
                                  AND NOT EXISTS(SELECT * FROM search_name
                                                 WHERE ARRAY[word.word_id] && name_vector)