diff --git a/bin/rank_todo.py b/bin/rank_todo.py index f5dcc125..b97a0386 100755 --- a/bin/rank_todo.py +++ b/bin/rank_todo.py @@ -191,7 +191,7 @@ def rank(text: str, readme: str, decisions: str) -> Ranked | Failure: return ranked under_bar = [under_the_bar(item, value, scoring.bar, items) for item, value in scored if not item.exempt and round(value, 1) < scoring.bar] held = {item.id for item in items} - dropped = [f"item {item.id}: dropped {', '.join(map(str, gone))} from its {BLOCKED_BY}; the table no longer holds it" for item in items if (gone := sorted(set(item.blocked_by) - held))] + dropped = [f"item {item.id}: dropped {', '.join(map(str, gone))} from its {BLOCKED_BY}; the table no longer holds {'it' if len(gone) == 1 else 'them'}" for item in items if (gone := sorted(set(item.blocked_by) - held))] return Ranked(ranked, under_bar, dropped)