Commit 0284842e authored by Bram Schoenmakers's avatar Bram Schoenmakers

Print start date and make priority conditional

parent 3e027c30
...@@ -55,7 +55,17 @@ class DotPrinter(Printer): ...@@ -55,7 +55,17 @@ class DotPrinter(Printer):
"</S>" if todo.is_completed() else "", "</S>" if todo.is_completed() else "",
) )
node_result += '<HR/>' node_result += '<HR/>'
node_result += print_row('Prio:', p_todo.priority())
priority = p_todo.priority()
if priority:
node_result += print_row('Prio:', p_todo.priority())
start_date = p_todo.start_date()
if start_date:
node_result += print_row('Starts:', "{} ({})".format(
start_date.isoformat(),
humanize_date(start_date)
))
due_date = p_todo.due_date() due_date = p_todo.due_date()
if due_date: if due_date:
......
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