From 84bf1d07acff8224810888a1950e1d3bf6d51932 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 4 Nov 2014 00:27:08 +0100 Subject: [PATCH] Set real timers for all users --- teleforma/views/pro.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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') -- 2.39.5