From 273f5ecf58c91e05b8784efb6a9b56ae2c32ae57 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 24 Jul 2016 23:02:39 -0400 Subject: [PATCH] [fix] language defaults --- scripts/geodata/osm/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index ba1c0d49..f3483eac 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -387,7 +387,7 @@ class OSMAddressFormatter(object): all_local_languages = set([l for l, d in local_languages]) random_languages = set(INTERNET_LANGUAGE_DISTRIBUTION) - more_than_one_official_language = len([l for l in candidate_languages if int(l['default'])]) > 1 + more_than_one_official_language = len([lang for lang, default in local_languages if default]) > 1 containing_ids = [(b['type'], b['id']) for b in osm_components]