diff options
author | Alban Gruin | 2017-10-05 12:45:01 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-05 12:45:01 +0200 |
commit | ccfedd0bbb8f9e5229b4007157fb0c2aa8484668 (patch) | |
tree | b8873864143f0f7567d19d118ef1087b1a77ddcc /management/commands/timetables.py | |
parent | 295f8cbd261cf588f1f5f8eb2b0d82b1ae9c1fe0 (diff) |
Mauvais module
Diffstat (limited to 'management/commands/timetables.py')
-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 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 |