From 51802035defd8f8f05a407735d13bd744cd79777 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 25 Dec 2016 01:08:44 -0500 Subject: [PATCH] [fix] var name --- scripts/geodata/addresses/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index 902523f9..e545d218 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -865,7 +865,7 @@ class AddressComponents(object): if (component == AddressFormatter.CITY or (component in city_replacements and not have_city)) and component not in grouped_components and (not have_sub_city or not self.osm_component_is_village(props)): grouped_components[component].append(props) - if is_japan and component == AddressFormatter.SUBURB and not first_suburb: + if is_japan and component == AddressFormatter.SUBURB and not checked_first_suburb: existing = grouped_components[component] for p in existing: if (props['id'] == p['id'] and props['type'] == p['type']) or \