From 5cba747a931371104aa95f8087c10580b0927d67 Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 17 Jul 2015 03:06:06 -0400 Subject: [PATCH] [fix] variable name --- scripts/geodata/osm/osm_address_training_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index 7c9cb513..95e02707 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -321,7 +321,7 @@ def get_language_names(language_rtree, key, value, tag_prefix='name'): return None, None country, candidate_languages = country_and_languages(language_rtree, latitude, longitude) - if not (country and default_languages): + if not (country and candidate_languages): return None, None num_defaults = sum((1 for l in candidate_languages if l.get('default')))