]> git.parisson.com Git - teleforma.git/commitdiff
fix time condition
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 21 Nov 2014 15:29:46 +0000 (16:29 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 21 Nov 2014 15:29:46 +0000 (16:29 +0100)
teleforma/views/pro.py

index dee3e555fd010f527e603dd6c0d03afbc5b7b62a..5c2c457eff86602ba5eac175bf5eb7e3c2963273 100644 (file)
@@ -177,9 +177,9 @@ class SeminarView(SeminarAccessMixin, DetailView):
             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)."))
         elif progress < 100 and validated and self.template_name == 'teleforma/seminar_detail.html':
             messages.info(self.request, _("All your answers have been validated. You can now read the corrected documents (step 5)."))
-        elif progress == 100 and validated and self.template_name == 'teleforma/seminar_detail.html':
+        elif progress == 100 and validated and seminar_time >= 0 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."))
-        if progress == 100 and validated and seminar_time <= 0:
+        if progress == 100 and validated and seminar_time < 0:
             messages.info(self.request, _("Your connexion time is not sufficient. In order to get your testimonial, you have to work at least the time required for this seminar."))
 
         return context