]> git.parisson.com Git - teleforma.git/commitdiff
fix filter, bad coding but no time TOFIX :( !!!
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 21 Jul 2014 22:10:04 +0000 (00:10 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 21 Jul 2014 22:10:04 +0000 (00:10 +0200)
teleforma/views/pro.py

index 45a2b744220179b2b4d266d5d2ab8fb9021caf35..217aad22bc8fb367b14eb15477bb0106e1833236 100644 (file)
@@ -174,7 +174,7 @@ class SeminarView(SeminarAccessMixin, DetailView):
             messages.info(self.request, _("You have successfully terminated all steps of your e-learning seminar. You can now download your training testimonial below."))
 
         delta = self.get_delta(user, seminar)
-        if datetime.datetime.now() > REVISION_DATE_FILTER:
+        if user.is_superuser or 'cnb' in user.username or 'test' in user.username:
             time = delta - datetime.timedelta(seconds=seminar.duration.as_seconds())
             context['seminar_time'] = time.total_seconds()
             context['delta'] = str(delta).split('.')[0]