[fix] combined components

This commit is contained in:
Al
2016-12-26 21:35:27 -05:00
parent c3bf63bc18
commit 76d8fc1d37

View File

@@ -504,7 +504,7 @@ class AddressComponents(object):
for combo in combo_config:
components = OrderedDict.fromkeys(combo['components']).keys()
if not all((is_numeric(address_components.get(c, generated.get(c))) or c in generated for c in components)):
if not all((is_numeric(address_components.get(c, generated.get(c))) or generated.get(c) for c in components)):
if combo['probability'] == 1.0:
for c in components:
if c in address_components and c in generated: