Skip to content

Commit

Permalink
fix warnings: save todo before shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 14, 2024
1 parent db0d082 commit 71792f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dooit/api/todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 --------------
Expand Down
1 change: 1 addition & 0 deletions dooit/api/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def _add_sibling(self) -> "Workspace":
workspace = Workspace(
parent_workspace=self.parent_workspace,
)
workspace.save()
return workspace

def save(self) -> None:
Expand Down

0 comments on commit 71792f2

Please sign in to comment.