From 3a83c9d3636f7f3f9f3d2580de43cf47d598d4f6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 20 Oct 2015 00:54:55 +0200 Subject: Imports: improve data matching --- archaeological_operations/data_importer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archaeological_operations/data_importer.py') diff --git a/archaeological_operations/data_importer.py b/archaeological_operations/data_importer.py index 9cbdca05c..a5d44dd53 100644 --- a/archaeological_operations/data_importer.py +++ b/archaeological_operations/data_importer.py @@ -72,14 +72,14 @@ class TownFormater(Formater): for town in Town.objects.all(): key = (slugify(town.name.strip()), town.numero_insee[:2]) if key in self._town_full_dct: - print("Danger! %s is ambiguous with another town on the same " - "department." % town.name) + # print("Danger! %s is ambiguous with another town on the same" + # " department." % town.name) continue self._town_full_dct[key] = town key = slugify(town.name.strip()) if key in self._town_dct: - print("Warning %s is ambiguous with no department provided" % - town.name) + # print("Warning %s is ambiguous with no department provided" % + # town.name) continue self._town_dct[key] = town self._initialized = True -- cgit v1.2.3