Compute duration in seconds

datetime.timedelta doesn't support operations with float

issue4699
review11181002
This commit is contained in:
Cédric Krier committed 2015-04-11 11:30:28 -04:00
1 parent 36465d126e
commit 37ab9efff1
1 file changed
+2 -1
+2 -1
View File
@@ -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: