1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2024-12-25 17:02:23 +00:00

Fix check consistency script

This commit is contained in:
Yohann D'ANELLO 2020-08-05 23:51:55 +02:00
parent 31dc478b7a
commit e01b48b807

View File

@ -29,7 +29,7 @@ class Command(BaseCommand):
self.stdout.write(self.style.SUCCESS("La somme des notes vaut bien zéro."))
notes = None
if options["check-all"]:
if options["check_all"]:
notes = Note.objects.all()
elif options["check"]:
notes = Note.objects.filter(pk__in=options["check"])