From 311730f77c88a6004d832afd3046d5e620d781ac Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 24 Nov 2011 12:41:36 +0100 Subject: [PATCH] import crem: strip item CSV codes --- tools/scripts/telemeta-crem-import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/telemeta-crem-import.py b/tools/scripts/telemeta-crem-import.py index 0ca029ba..d5c8fc8f 100755 --- a/tools/scripts/telemeta-crem-import.py +++ b/tools/scripts/telemeta-crem-import.py @@ -106,7 +106,7 @@ class TelemetaWavImport: csv_file = self.source_dir + os.sep + collection + os.sep + collection + '.csv' csv_data = csv.reader(open(csv_file), delimiter=';') for row in csv_data: - rows[row[1]] = row[0] + rows[row[1].strip()] = row[0].strip() msg = collection + ' import du fichier CSV de la collection' self.logger.info(collection, msg[:70]) else: -- 2.39.5