From c0abdcdd7ecc2f0fd237e311bf85801eb130ccac Mon Sep 17 00:00:00 2001 From: Kenneth SOARES Date: Wed, 9 Apr 2025 22:38:12 +0200 Subject: [PATCH] mistake correction --- core/management/commands/add_promo_logo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/management/commands/add_promo_logo.py b/core/management/commands/add_promo_logo.py index 9bef8015..d4a5c818 100644 --- a/core/management/commands/add_promo_logo.py +++ b/core/management/commands/add_promo_logo.py @@ -13,7 +13,7 @@ class Command(BaseCommand): parser.add_argument("-f", "--force", action="store_true") def handle(self, number: int, path: pathlib.Path, force: int, *args, **options): - if not path.exists(): + if path.exists(): dest_path = pathlib.Path( BASE_DIR / "core" / "static" / "core" / "img" / f"promo_{number}.png" )