home · contact · privacy
Fix inability of updating Todo if .is_done but no more doable.
[plomtask] / plomtask / todos.py
index af45f720ca6e2011fb52bd5af18582a2feca76f1..0125b97809350de3c991d332d80c7adfbaf583ce 100644 (file)
@@ -258,7 +258,7 @@ class Todo(BaseModel[int], ConditionsRelations):
         """Return sum of performed efforts of self and all descendants."""
 
         def walk_tree(node: Todo) -> float:
-            local_effort = 0
+            local_effort = 0.0
             for child in node.children:
                 local_effort += walk_tree(child)
             return node.performed_effort + local_effort