From: Guillaume Pellerin Date: Mon, 3 Nov 2014 23:27:08 +0000 (+0100) Subject: Set real timers for all users X-Git-Tag: 2.8.1-pro~282^2~51 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=84bf1d07acff8224810888a1950e1d3bf6d51932;p=teleforma.git Set real timers for all users --- diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 217aad22..c7617ebc 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -174,13 +174,9 @@ 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 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] - else: - context['seminar_time'] = 1 - context['delta'] = '10:37:28' + time = delta - datetime.timedelta(seconds=seminar.duration.as_seconds()) + context['seminar_time'] = time.total_seconds() + context['delta'] = str(delta).split('.')[0] return context @jsonrpc_method('teleforma.publish_seminar')