From 46f421e455b9de32230d74c1a89f74118583b12a Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 22 Dec 2016 20:56:58 -0500 Subject: [PATCH] [fix] names --- scripts/geodata/addresses/components.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index 33f81491..b8eeb6c0 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -1023,8 +1023,8 @@ class AddressComponents(object): # For cases like OpenAddresses if replace_city and city_name and (name.lower() == city_name.lower() or standard_name.lower() == city_name.lower()): - components.pop(AddressFormatter.CITY) - components[neighborhood_level] = name + address_components.pop(AddressFormatter.CITY) + address_components[neighborhood_level] = name neighborhood_levels[neighborhood_level].append(name)