From 71792f29141d61b72fd68c79cf9ef794a6a40e58 Mon Sep 17 00:00:00 2001 From: kraanzu Date: Thu, 14 Nov 2024 21:30:12 +0530 Subject: [PATCH] fix warnings: save todo before shifting --- dooit/api/todo.py | 1 + dooit/api/workspace.py | 1 + 2 files changed, 2 insertions(+) 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: