From 65f4b68078bf03df6e79c16b861602edce14954b Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 3 Apr 2025 08:52:46 +0200 Subject: [PATCH] update shop --- .../{skirt_logo.png => skirt-logo.png} | Bin shop/templatetags/shop_extras.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename shop/static/shop/images/products/PC005/blanc-bleu-sport/{skirt_logo.png => skirt-logo.png} (100%) diff --git a/shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt_logo.png b/shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt-logo.png similarity index 100% rename from shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt_logo.png rename to shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt-logo.png diff --git a/shop/templatetags/shop_extras.py b/shop/templatetags/shop_extras.py index 9938501..ddc0b8a 100644 --- a/shop/templatetags/shop_extras.py +++ b/shop/templatetags/shop_extras.py @@ -38,7 +38,8 @@ def color_images_url(default_image, color_name, sku): files.sort(key=lambda x: ( 1 if '-B_' in x else 2 if '-S_' in x else - 0 + 0 if '-logo' in x else + 1 )) return [f'{base_path}{color_folder}/{file}' for file in files]