diff options
author | Alban Gruin | 2017-01-24 16:05:30 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-24 16:05:30 +0100 |
commit | 69fde609d36c63891cdbaad8428884aa1873cde3 (patch) | |
tree | ed2816e503f8dbc6fa88c52ba3d40eb70544469f /management/commands | |
parent | 0b12914242f5c4def3cc86d44e370c6ad44920db (diff) |
Enregistrement de la dernière date même si aucune exception n'a été levée
Diffstat (limited to 'management/commands')
-rw-r--r-- | management/commands/timetables.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/management/commands/timetables.py b/management/commands/timetables.py index 809b600..c18db9e 100644 --- a/management/commands/timetables.py +++ b/management/commands/timetables.py @@ -31,6 +31,7 @@ def process_timetable_week(timetable, year, week, soup, weeks_in_soup): last_update.date = date except: last_update = LastUpdate(timetable=timetable, year=year, week=week, date=date) + finally: last_update.save() def process_timetable(timetable, year, weeks): |