From e01b48b807cf90aeeba6ba46cfe3ebfc17880073 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 5 Aug 2020 23:51:55 +0200 Subject: [PATCH] Fix check consistency script --- management/commands/check_consistency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/commands/check_consistency.py b/management/commands/check_consistency.py index 9e0b328..71a39c6 100644 --- a/management/commands/check_consistency.py +++ b/management/commands/check_consistency.py @@ -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"])