]> git.parisson.com Git - teleforma.git/commitdiff
idem
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 24 Nov 2014 16:28:11 +0000 (17:28 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 24 Nov 2014 16:28:11 +0000 (17:28 +0100)
teleforma/views/pro.py

index be85c2628fde923dde490bdaf115767fc9a728ca..c235a772bf55b2d1456b13b294afc256c64389a2 100644 (file)
@@ -172,7 +172,7 @@ class SeminarView(SeminarAccessMixin, DetailView):
         delta = timer - datetime.timedelta(seconds=seminar.duration.as_seconds())
         delta_sec = delta.total_seconds()
         context['delta_sec'] = delta_sec
-        context['timer'] = str(delta).split('.')[0]
+        context['timer'] = str(timer).split('.')[0]
 
         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)."))