diff options
-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(): |