commit ede1546fa1ddff6db239f27fae51d23029287008
parent 73bebec689998cea7c9307bbeed9af04849e1524
Author: lash <dev@holbrook.no>
Date: Mon, 7 Nov 2022 09:16:41 +0000
Deduplicate blocked tasks in output
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/piknik/runnable/list.py b/piknik/runnable/list.py
@@ -21,10 +21,11 @@ def render_ini(b, r):
for k in basket.states():
if k == 'FINISHED' and not arg.show_finished:
continue
-
print('[' + k + ']')
for v in r[k]:
+ if k != 'BLOCKED' and v in r['BLOCKED']:
+ continue
o = b.get(v)
t = b.tags(v)
print('{}\t{}\t{}'.format(o.title, ','.join(t), v))