diff options
author | Alban Gruin | 2017-01-22 12:23:11 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-22 12:23:11 +0100 |
commit | 3f0efad5ee4069d5387e742f346f8d782607fa96 (patch) | |
tree | 2bfc5204f25c0d0670608e16864aa8c92aaee0ce | |
parent | 9e8d4c492b0178214fb1997ff46335cfd4015557 (diff) |
Correction d'un crash se provoquant lors de la lecture des arguments de la commande
-rw-r--r-- | management/commands/timetables.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/management/commands/timetables.py b/management/commands/timetables.py index 9882759..6412b7e 100644 --- a/management/commands/timetables.py +++ b/management/commands/timetables.py @@ -52,7 +52,7 @@ class Command(BaseCommand): if options["year"] is None and year is None: year = timezone.now().year - else: + elif year is None: year = options["year"][0] for timetable in Timetable.objects.all(): |