Commit b2599970 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Rewrite method _get_due_date to something shorter.

parent 4665531c
......@@ -16,11 +16,7 @@ def _get_due_date(p_todo):
"""
due = p_todo.due_date()
if not due or due < date.today():
due = date.today()
return due
return due if (due and due >= date.today()) else date.today()
def advance_recurring_todo(p_todo):
"""
......
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