From 7b3a59878c14880faca6bf8ea729798681ec7380 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 5 Oct 2016 14:27:24 -0400 Subject: [PATCH] [fix] bracket --- 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 42e7faa1..d33e6bbc 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -160,7 +160,7 @@ def get_language_names(country_rtree, key, value, tag_prefix='name'): ambiguous_already_seen.add(v) elif not has_alternate_names and k.startswith(tag_first_component) and (has_colon or ':' not in k) and normalize_osm_name_tag(k, script=True) == tag_last_component: if num_langs == 1: - name_language[candidate_languages[0][0].append(v) + name_language[candidate_languages[0][0]].append(v) else: lang = disambiguate_language(v, candidate_languages) default_lang = candidate_languages[0][0]