[openaddresses] doing config in sorted order, puts the US last, sorts the states, etc. so there's a consistent sense of progress
This commit is contained in:
@@ -511,7 +511,8 @@ class OpenAddressesFormatter(object):
|
|||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
|
|
||||||
for country_dir, country_config in six.iteritems(openaddresses_config.country_configs):
|
for country_dir in sorted(openaddresses_config.country_configs.keys()):
|
||||||
|
country_config = openaddresses_config.country_configs[country_dir]
|
||||||
# Clear country cache for each new country
|
# Clear country cache for each new country
|
||||||
self.country_rtree.clear_cache()
|
self.country_rtree.clear_cache()
|
||||||
|
|
||||||
@@ -542,8 +543,9 @@ class OpenAddressesFormatter(object):
|
|||||||
if self.debug:
|
if self.debug:
|
||||||
break
|
break
|
||||||
|
|
||||||
for subdir, subdir_config in six.iteritems(country_config.get('subdirs', {})):
|
for subdir in sorted(country_config.get('subdirs', {}).keys()):
|
||||||
subdir = safe_decode(subdir)
|
subdir = safe_decode(subdir)
|
||||||
|
subdir_config = country_config['subdirs'][subdir]
|
||||||
for file_config in subdir_config.get('files', []):
|
for file_config in subdir_config.get('files', []):
|
||||||
filename = file_config['filename']
|
filename = file_config['filename']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user