From: Guillaume Pellerin Date: Wed, 8 Jul 2026 21:38:50 +0000 (+0200) Subject: fix days X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=082905fa99b45cc2efe7a1591ad9ed33a6812e01;p=teleforma.git fix days --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 966312b1..3447b199 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 = float(result.stdout)) + self.duration = datetime.timedelta(days=0, seconds=float(result.stdout)) class Meta(MetaCore): db_table = app_label + '_' + 'media'