nanterre: corrige la commande rsu-duplicate delete --limit xx (fixes #22506)

This commit is contained in:
Benjamin Dauvergne 2018-03-14 00:28:22 +01:00 committed by Thomas NOEL
parent 774610685f
commit 14ae6c90ed
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class Command(BaseCommand):
elif command == 'delete':
qs = Duplicate.objects.all()
if limit:
qs = qs.filter(limit__lt=limit)
qs = qs.filter(score__lt=limit)
qs.delete()
elif command == 'list':
qs = Duplicate.objects.order_by('-created', '-id')