mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-15 07:24:09 +00:00
fix linting error
This commit is contained in:
@@ -111,9 +111,6 @@ def create_country_names(conn, tokenizer, languages=None):
|
||||
if languages:
|
||||
languages = languages.split(',')
|
||||
|
||||
# def _include_key(key):
|
||||
# return key.startswith('name:') and \
|
||||
# key[5:] in languages or key[5:] == 'default'
|
||||
def _include_key(key):
|
||||
return key == 'name' or \
|
||||
(key.startswith('name:') and (not languages or key[5:] in languages))
|
||||
|
||||
Reference in New Issue
Block a user