diff --git a/work.py b/work.py index 98c0dd9c4c..f7a065d7b3 100644 --- a/work.py +++ b/work.py @@ -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: