Commit 7021e5e0 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Delete the merged todos based on their state

parent 26a2d65c
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment