Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Fix check consistency script
· e01b48b8
ynerant
authored
Aug 05, 2020
e01b48b8
Hide whitespace changes
Inline
Side-by-side
management/commands/check_consistency.py
View file @
e01b48b8
...
...
@@ -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
"
])
...
...