mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 21:54:10 +03:00
fix linting error
This commit is contained in:
parent
e9c14979a4
commit
cfbd3652ef
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user