Skip to content
Snippets Groups Projects
Commit 7021e5e0 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Delete the merged todos based on their state

parent 26a2d65c
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ def merge_todos():
todo1, todo2 = todo, todo_by_id[todo_id]
print(todo1)
print(todo2)
if todo2.id > todo1.id:
if todo2.state.value > todo1.state.value:
todo2, todo1 = todo1, todo2
for protocol in todo2.protocols:
if protocol not in todo1.protocols:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment