aboutsummaryrefslogtreecommitdiff
path: root/management
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 20:28:48 +0200
committerAlban Gruin2017-09-07 20:28:48 +0200
commit702ed90e13396bd999079d22f03a40e4daf93a54 (patch)
tree45004dcb62a4e93dab600037ca0a9eebcee12d9a /management
parent1a605b7390fadd1ad65128590aca9d30743a0510 (diff)
Correction de la création de l’objet LastUpdate
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: