Skip to content

Commit

Permalink
use manager commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 10, 2024
1 parent 73a22a9 commit 83ee2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dooit/api/todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def sort_siblings(self, field: str):
for index, todo in enumerate(items):
todo.order_index = index

self.session.commit()
manager.commit()

def add_todo(self) -> "Todo":
todo = Todo(parent_todo=self)
Expand Down

0 comments on commit 83ee2ab

Please sign in to comment.