From: Guillaume Pellerin Date: Wed, 5 Oct 2022 10:48:08 +0000 (+0200) Subject: fix duration X-Git-Tag: 2.8.1-pro~76 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=94a1b9d57c813933bec9c0be55bc0e5c6e02aff8;p=teleforma.git fix duration --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index f44eaeb5..e13164e6 100755 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -691,7 +691,7 @@ class Media(MediaBase): #duration = "%s:%s:%s" % (match.group(1), match.group(2), match.group(3)) duration = datetime.timedelta(hours=hours, minutes=minutes, seconds=seconds).total_seconds() else: - duration = None + duration = 0 self.approx_duration = duration