]> git.parisson.com Git - teleforma.git/commitdiff
fix time
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 19:48:52 +0000 (21:48 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 19:48:52 +0000 (21:48 +0200)
teleforma/views/pro.py

index 3533f8b4cb85e2f5f5ca039cd121c48d817ed71e..b53b0f0caf93e7933f78ff7302409a826e9b1939 100644 (file)
@@ -172,7 +172,7 @@ class SeminarView(SeminarAccessMixin, DetailView):
         elif progress == 100 and validated and self.template_name == 'teleforma/seminar_detail.html':
             messages.info(self.request, _("You have successfully terminated all steps of your e-learning seminar. You can now download your training testimonial below."))
         # set_revision(user, seminar)
-        context['delta'] = str(self.get_delta(user, seminar))
+        context['delta'] = str(self.get_delta(user, seminar)).split('.')[0]
         return context
 
     @jsonrpc_method('teleforma.publish_seminar')