bug-fix-prune-skipped-upload

This commit is contained in:
Petitminion 2023-06-09 12:27:02 +02:00
parent 8fb60c9203
commit a41f96ec18
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class Command(BaseCommand):
@transaction.atomic
def handle(self, *args, **options):
skipped = models.Upload.objects.filter(import_status="skipped")
count = len(skipped)
count = skipped.count()
if options["force"]:
skipped.delete()
print(f"Deleted {count} entries from the database.")