mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-25 18:48:15 +00:00
add get_str_list() for config
Converts a config value written as a comma-sparated list into a Python list of strings.
This commit is contained in:
@@ -131,9 +131,6 @@ def create_country_names(conn, tokenizer, languages=None):
|
||||
empty then only name translations for the given languages are added
|
||||
to the index.
|
||||
"""
|
||||
if languages:
|
||||
languages = languages.split(',')
|
||||
|
||||
def _include_key(key):
|
||||
return ':' not in key or not languages or \
|
||||
key[key.index(':') + 1:] in languages
|
||||
|
||||
Reference in New Issue
Block a user