From d1483ea589c225c979820d52c12f9329a9a5fb4f Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 2 Sep 2016 02:31:48 -0400 Subject: [PATCH] [fix] postcodes --- 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 5dbfb112..40674b9d 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -1027,7 +1027,7 @@ class AddressComponents(object): not be simply listed as "1" and people expected to understand. ''' for component in list(address_components): - if component not in self.BOUNDARY_COMPONENTS and component != AddressFormatter.POSTCODE: + if component not in self.BOUNDARY_COMPONENTS or component == AddressFormatter.POSTCODE: continue value = address_components[component] if value.isdigit():