From: Guillaume Pellerin Date: Wed, 8 Jul 2026 21:37:37 +0000 (+0200) Subject: fix float X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=94a464aef7a9d30be633794f7a448bcd775648cc;p=teleforma.git fix float --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 86345197..966312b1 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -1129,7 +1129,7 @@ class Media(MediaBase): "default=noprint_wrappers=1:nokey=1", self.file.path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - self.duration = datetime.timedelta(days =-1, seconds = int(result.stdout)) + self.duration = datetime.timedelta(days =-1, seconds = float(result.stdout)) class Meta(MetaCore): db_table = app_label + '_' + 'media'