From dfc88a47b2ed28231e50a6932b00c8e60c32bab1 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 11 Dec 2016 02:46:03 -0500 Subject: [PATCH] [fix] typo --- 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 88ab1793..5b9a1311 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -962,7 +962,7 @@ class AddressComponents(object): key, raw_key = self.pick_random_name_key(neighborhood, neighborhood_level, suffix=language_suffix) name = neighborhood.get(key, neighborhood.get(raw_key)) - if place_type == 'borough' or (not place and polygon_type == 'local_admin'): + if place_type == 'borough' or (not place_type and polygon_type == 'local_admin'): neighborhood_level = AddressFormatter.CITY_DISTRICT # Optimization so we don't use e.g. Brooklyn multiple times