Fix check consistency script
This commit is contained in:
parent
31dc478b7a
commit
e01b48b807
|
@ -29,7 +29,7 @@ class Command(BaseCommand):
|
||||||
self.stdout.write(self.style.SUCCESS("La somme des notes vaut bien zéro."))
|
self.stdout.write(self.style.SUCCESS("La somme des notes vaut bien zéro."))
|
||||||
|
|
||||||
notes = None
|
notes = None
|
||||||
if options["check-all"]:
|
if options["check_all"]:
|
||||||
notes = Note.objects.all()
|
notes = Note.objects.all()
|
||||||
elif options["check"]:
|
elif options["check"]:
|
||||||
notes = Note.objects.filter(pk__in=options["check"])
|
notes = Note.objects.filter(pk__in=options["check"])
|
||||||
|
|
Loading…
Reference in New Issue