--- 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