...
 
Commits (2)
......@@ -73,7 +73,7 @@ TRANSPORT_TYPES = [
u'Port',
u'Aéroport',
u'Touristique',
u'Transport d''altitude',
u'Transport d\'altitude',
u'Réseau fluvial',
u'Vélo-Libre Service',
u'Covoiturage',
......@@ -272,7 +272,7 @@ def get_criterion_by_territory(territory):
criterion = dict()
criterion[u'kind'] = NAME_TO_KIND[territory.split('(')[1].split(')')[0]]
if criterion[u'kind'] != u'RegionOfFrance':
if criterion[u'kind'] not in [u'RegionOfFrance', u'IntercommunalityOfFrance']:
criterion[u'main_postal_distribution.postal_routing'] = u' '.join(territory.split('(')[0].split(' ')[1:]).strip().replace('-', ' ')
criterion[u'main_postal_distribution.postal_code'] = territory.split(' ')[0]
else:
......