]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix linting error
authorTareq Al-Ahdal <tareqoalahdal@gmail.com>
Fri, 1 Apr 2022 16:14:18 +0000 (00:14 +0800)
committerTareq Al-Ahdal <tareqoalahdal@gmail.com>
Fri, 1 Apr 2022 16:14:18 +0000 (00:14 +0800)
nominatim/tools/country_info.py

index ab87e826eeda72fb0d2b648c39a768d3b92ed136..f6a6293f46e46573c88d5e288c653b47f66a1cbc 100644 (file)
@@ -117,7 +117,7 @@ def create_country_names(conn, tokenizer, languages=None):
     def _include_key(key):
         return key == _COUNTRY_INFO.key_prefix() or \
             (key.startswith(_COUNTRY_INFO.key_prefix()+':') and
-                (not languages or key[len(_COUNTRY_INFO.key_prefix())+1:] in languages))
+             (not languages or key[len(_COUNTRY_INFO.key_prefix())+1:] in languages))
 
     with conn.cursor() as cur:
         psycopg2.extras.register_hstore(cur)