From 69fde609d36c63891cdbaad8428884aa1873cde3 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 24 Jan 2017 16:05:30 +0100 Subject: Enregistrement de la dernière date même si aucune exception n'a été levée --- management/commands/timetables.py | 1 + 1 file changed, 1 insertion(+) 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): -- cgit v1.2.1