aboutsummaryrefslogtreecommitdiff
path: root/management
diff options
context:
space:
mode:
Diffstat (limited to 'management')
-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 7f33be1..64dd6f6 100644
--- a/management/commands/timetables.py
+++ b/management/commands/timetables.py
@@ -31,7 +31,7 @@ def process_timetable_week(timetable, year, week, soup, weeks_in_soup):
last_update = LastUpdate.objects.get(timetable=timetable, year=year, week=week)
last_update_date = last_update.updated_at
except:
- last_update = LastUpdate.objects(timetable=timetable, year=year, week=week)
+ last_update = LastUpdate(timetable=timetable, year=year, week=week)
if last_update_date is not None and new_update_date is not None and \
last_update_date >= new_update_date: