Commit ebe4b1a5 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Add placeholder for relative completion date: %X

parent 15f497ee
......@@ -184,9 +184,12 @@ class PrettyPrinterFormatFilter(PrettyPrinterFilter):
# relative start date
placeholders['T'] = lambda t: humanize_date(t.start_date()) if t.start_date() else ''
# completed
# absolute completion date
placeholders['x'] = lambda t: 'x ' + t.completion_date().isoformat() if t.is_completed() else ''
# relative completion date
placeholders['X'] = lambda t: 'x ' + humanize_date(t.completion_date()) if t.is_completed() else ''
# literal %
placeholders['%'] = lambda _: '%'
......
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