Say them for more than one dropped blocker
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ def rank(text: str, readme: str, decisions: str) -> Ranked | Failure:
|
|||||||
return ranked
|
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]
|
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}
|
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)
|
return Ranked(ranked, under_bar, dropped)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user