interactive: Consider only recycler's tasks for next_tasks

This commit is contained in:
Ivan A. Melnikov 2018-07-29 09:52:02 +04:00
parent d1ecb45ba3
commit c699c11eea

View File

@ -156,7 +156,8 @@ def _task_colors(info):
def next_tasks(colors=frozenset(['ORANGE', 'YELLOW', 'EXTRA']), to=pager):
tasks = _filtered_tasks(lambda t: t['state'] != 'DONE',
lambda t: _task_colors(t) & colors)
lambda t: _task_colors(t) & colors,
lambda t: t['owner'].startswith('recycler'))
to("%s tasks\n\n%s" % (len(tasks), _format_ti(tasks)))