Commit d210e6a7 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Remove logic to calculate length based on creation date.

The Todo class is now able to calculate this when no start date is given.
parent 80114fff
......@@ -56,13 +56,8 @@ def progress_color_code(p_todo, p_safe=True):
due = p_todo.due_date()
result = diff_days(start, due)
elif p_todo.start_date() and p_todo.due_date():
else:
result = p_todo.length()
elif p_todo.creation_date() and p_todo.due_date():
start = p_todo.creation_date()
due = p_todo.due_date()
result = diff_days(start, due)
return result
......
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