diff --git a/dooit/api/todo.py b/dooit/api/todo.py index 73d43330..a1f46fb8 100644 --- a/dooit/api/todo.py +++ b/dooit/api/todo.py @@ -150,6 +150,7 @@ def _add_sibling(self) -> "Todo": parent_todo=self.parent_todo, parent_workspace=self.parent_workspace, ) + todo.save() return todo # ----------- HELPER FUNCTIONS -------------- diff --git a/dooit/api/workspace.py b/dooit/api/workspace.py index 870a72a5..d0b72636 100644 --- a/dooit/api/workspace.py +++ b/dooit/api/workspace.py @@ -105,6 +105,7 @@ def _add_sibling(self) -> "Workspace": workspace = Workspace( parent_workspace=self.parent_workspace, ) + workspace.save() return workspace def save(self) -> None: