forked from hans/Nominatim
initialize an empty dictionary for nested name key
This commit is contained in:
@@ -35,8 +35,8 @@ class _CountryInfo:
|
|||||||
elif not isinstance(prop['languages'], list):
|
elif not isinstance(prop['languages'], list):
|
||||||
prop['languages'] = [x.strip()
|
prop['languages'] = [x.strip()
|
||||||
for x in prop['languages'].split(',')]
|
for x in prop['languages'].split(',')]
|
||||||
if 'name' not in prop:
|
if 'names' not in prop:
|
||||||
prop['name'] = {}
|
prop['names']['name'] = {}
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
""" Return tuples of (country_code, property dict) as iterable.
|
""" Return tuples of (country_code, property dict) as iterable.
|
||||||
|
|||||||
Reference in New Issue
Block a user