Don't fail if effort is None
issue3725 review4271003
This commit is contained in:
1 parent
e70f5ad3fb
commit
00a37971b6
1 file changed
+3
-2
@@ -109,11 +109,12 @@ class Work:
|
||||
|
||||
total_allocation = 0
|
||||
if not work.allocations:
|
||||
durations[work.id] = work.effort
|
||||
durations[work.id] = (work.effort or 0)
|
||||
continue
|
||||
for allocation in work.allocations:
|
||||
total_allocation += allocation.percentage
|
||||
durations[work.id] = work.effort / (total_allocation / 100.0)
|
||||
durations[work.id] = ((work.effort or 0)
|
||||
/ (total_allocation / 100.0))
|
||||
|
||||
while leafs:
|
||||
for work_id in leafs:
|
||||
|
||||
Reference in new issue
Block a user