mistake correction

This commit is contained in:
Kenneth SOARES 2025-04-09 22:38:12 +02:00
parent 263c4181af
commit c0abdcdd7e

View File

@ -13,7 +13,7 @@ class Command(BaseCommand):
parser.add_argument("-f", "--force", action="store_true") parser.add_argument("-f", "--force", action="store_true")
def handle(self, number: int, path: pathlib.Path, force: int, *args, **options): def handle(self, number: int, path: pathlib.Path, force: int, *args, **options):
if not path.exists(): if path.exists():
dest_path = pathlib.Path( dest_path = pathlib.Path(
BASE_DIR / "core" / "static" / "core" / "img" / f"promo_{number}.png" BASE_DIR / "core" / "static" / "core" / "img" / f"promo_{number}.png"
) )