Answer product-owner round 1: 0 🔴, 1 🟡 (0 misread); the first line of the table stands for a repo it names twice

This commit is contained in:
Lilleman
2026-11-20 10:46:19 +01:00
parent 5fb0f95e0c
commit d004fde8ce
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -62,8 +62,8 @@ Pick = Repo | ClaudeWork | HumanTask
def team_label(repo: str, team: LabelRepos) -> str | None:
"""The team's label for the repo: the first by name where the table maps several labels to it, None where it names none."""
return min((label for label, name in team.items() if name == repo), default=None)
"""The label on the table's first line that maps to the repo; None where no line does."""
return next((label for label, name in team.items() if name == repo), None)
def label_of(pick: Pick, team: LabelRepos) -> str: