removed unnecessary prints in importimages command
authordurandn
Wed, 21 Sep 2016 14:10:00 +0200
changeset 206 6b921d4b7c3a
parent 205 24e4aba394bf
child 207 bbec24a709d9
removed unnecessary prints in importimages command
src/iconolab/management/commands/importimages.py
--- a/src/iconolab/management/commands/importimages.py	Wed Sep 21 11:58:24 2016 +0200
+++ b/src/iconolab/management/commands/importimages.py	Wed Sep 21 14:10:00 2016 +0200
@@ -135,7 +135,6 @@
                             cleaned_row_data[key] = row[row_key]
                             break
                 cleaned_csv_data.append(cleaned_row_data)
-            print(cleaned_csv_data)
             # Listing image files in csv directory
             image_list = [f for f in os.listdir(source_dir) if os.path.isfile(os.path.join(source_dir, f)) and not f.endswith(".csv")]
             filtered_csv_data = []
@@ -145,7 +144,6 @@
                 has_image = False
                 for image in image_list:                    
                     img_name_pattern = r'.*'+re.escape(item[options.get("img_filename_identifier")])+r'[\.\-_].*'
-                    print(img_name_pattern+" versus "+image)
                     if re.match(img_name_pattern, image):
                         item["SRC_IMG_FILES"].append(image)
                         has_image = True