[fix] order

This commit is contained in:
Al
2016-12-10 15:16:35 -05:00
parent 8595d8da05
commit 72771741c3

View File

@@ -348,6 +348,8 @@ class AddressComponents(object):
same_name_as_original = True
break
containing_ids = [(c['type'], c['id']) for c in osm_components[i + 1:] if 'type' in c and 'id' in c]
component = osm_address_components.component_from_properties(country, props, containing=containing_ids)
if name_equal and component == tag:
continue
@@ -356,8 +358,6 @@ class AddressComponents(object):
is_state = False
containing_ids = [(c['type'], c['id']) for c in osm_components[i + 1:] if 'type' in c and 'id' in c]
if component is not None:
for cn in component_names:
components[cn.lower()].add(component)