Compute duration in seconds
datetime.timedelta doesn't support operations with float issue4699 review11181002
This commit is contained in:
1 parent
36465d126e
commit
37ab9efff1
1 file changed
+2
-1
@@ -115,7 +115,8 @@ class Work:
|
||||
continue
|
||||
for allocation in work.allocations:
|
||||
total_allocation += allocation.percentage
|
||||
durations[work.id] = (work.effort_duration
|
||||
durations[work.id] = datetime.timedelta(
|
||||
seconds=work.effort_duration.total_seconds()
|
||||
/ (total_allocation / 100.0))
|
||||
|
||||
while leafs:
|
||||
|
||||
Reference in new issue
Block a user