From 3c7778076bdf524141ef144a622a9c5357bb4141 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Thu, 7 Dec 2017 17:34:55 +0100 Subject: [PATCH] fix crash when a learning is complete --- teleforma/views/pro.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index f5eaef87..4fbf6c7f 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -188,12 +188,7 @@ class SeminarView(SeminarAccessMixin, DetailView): progress = seminar_progress(user, seminar) context['seminar_progress'] = progress context['seminar_validated'] = validated - - # timer = get_seminar_timer(user, seminar) - # delta_sec = get_seminar_delta(user, seminar) - # context['delta_sec'] = delta_sec - # context['timer'] = str(timer).split('.')[0] - + delta_sec = context['delta_sec'] if progress == 100 and not validated and self.template_name == 'teleforma/seminar_detail.html': messages.info(self.request, _("You have successfully terminated your e-learning seminar. A training testimonial will be available as soon as the pedagogical team validate all your answers (48h maximum).")) elif progress < 100 and validated and self.template_name == 'teleforma/seminar_detail.html': -- 2.39.5