]> git.parisson.com Git - teleforma.git/commitdiff
fix crash when a learning is complete
authorYoan Le Clanche <yoan@ellington.pilotsystems.net>
Thu, 7 Dec 2017 16:34:55 +0000 (17:34 +0100)
committerYoan Le Clanche <yoan@ellington.pilotsystems.net>
Thu, 7 Dec 2017 16:34:55 +0000 (17:34 +0100)
teleforma/views/pro.py

index f5eaef8722dee8d2a888abfb9fe5fcc3a26fbfb2..4fbf6c7f988f94aafa94b6c3b0b95d1f89d52b14 100644 (file)
@@ -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':