Commit 561ba74f authored by Bram Schoenmakers's avatar Bram Schoenmakers

When start date == due date, report todo length 0

Otherwise the wrong start date is calculated when advancing a recurring
todo item.

The progress color will still use a length of 1 for calculating the
appropriate color.
parent 5aadc375
...@@ -94,7 +94,5 @@ class Todo(TodoBase): ...@@ -94,7 +94,5 @@ class Todo(TodoBase):
if start and due and start < due: if start and due and start < due:
diff = due - start diff = due - start
return diff.days return diff.days
elif start and due and start == due:
return 1
else: else:
return 0 return 0
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