Say them for more than one dropped blocker

This commit is contained in:
2026-10-15 23:26:51 +02:00
parent c08a55f6a4
commit 3ed118b3ea
+1 -1
View File
@@ -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)