Преглед на файлове

fix: duration is an attribute of Interval, not Feature

main
Rob Hallam преди 1 месец
родител
ревизия
764083b001
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      pipeline/adjusters.py

+ 1
- 1
pipeline/adjusters.py Целия файл

@@ -68,7 +68,7 @@ class TargetTimeAdjuster(Adjuster):

Pulled out for unit testing.
"""
return float(sum([x.duration for x in features]))
return float(sum([x.interval.duration for x in features]))

def __init__(self, features: list=[],
target_time: int|float=_DEFAULT_TARGET_TIME,


Зареждане…
Отказ
Запис