aboutsummaryrefslogtreecommitdiff
path: root/management/commands
diff options
context:
space:
mode:
Diffstat (limited to 'management/commands')
-rw-r--r--management/commands/timetables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/management/commands/timetables.py b/management/commands/timetables.py
index 8b37a5d..8ba8768 100644
--- a/management/commands/timetables.py
+++ b/management/commands/timetables.py
@@ -27,7 +27,7 @@ from ._private import delete_courses_in_week, get_events, get_update_date, get_w
@transaction.atomic
def process_timetable_week(timetable, soup, weeks_in_soup, force, year=None, week=None):
criteria = {}
- today = timezone.make_aware(datetime.now())
+ today = timezone.make_aware(datetime.datetime.now())
if year is not None and week is not None:
begin, end = get_week(year, week)
criteria["begin__gte"] = begin