bug-fix-prune-skipped-upload
This commit is contained in:
parent
8fb60c9203
commit
a41f96ec18
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue