]> git.parisson.com Git - teleforma.git/commitdiff
templatetags/teleforma_tags.py
authorYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 7 Dec 2020 16:39:57 +0000 (17:39 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 7 Dec 2020 16:39:57 +0000 (17:39 +0100)
teleforma/templatetags/teleforma_tags.py

index 28f9049a6ebf205dde348e2cf95306923e0327db..331a1c5d30f500c2668d66422817ad96235697f6 100644 (file)
@@ -327,7 +327,9 @@ def fancy_seconds(seconds):
         if minutes_int:
             time += str(hours) + 'h'
         else:
-            time += str(hours) + ' heures'
+            time += str(hours) + ' heure'
+            if hours > 1:
+                time += 's'
     if minutes_int<10:
         minutes = '0' + str(minutes_int)
     else: