@property
    def duration(self):
        if not (self.date_finished and self.date_started):
            return
        return float('%.2f' % (self.date_finished - self.date_started).total_seconds())
dataset/ETHPy150Open getsentry/freight/freight/models/task.py/Task.duration/original