Fix the places help, the second run's recording rule and the decision title that the comprehension seats found misleading
This commit is contained in:
@@ -107,8 +107,9 @@ def latest_places(history: str) -> str | None:
|
||||
"""The places seats found hard from the oldest entry on the commit of the newest entry, by time, that is a scoring run or holds scoring seats' places: in it and each later entry, each ruled place opening with a dimension its seat's vote counted as worse, and every scoring seat's place. Each entry's places come under its heading, oldest first; with no such entry, it starts at the oldest entry. None when no place counts."""
|
||||
found = sorted(entries(history), key=lambda entry: entry.time)
|
||||
scored = [index for index, entry in enumerate(found) if not entry.paired or entry.scored_places]
|
||||
newest = next((index for index in scored if found[index].commit == found[scored[-1]].commit), 0)
|
||||
parts = [placed(entry, worse_places(entry) + labelled_bullets(entry.body, SCORED_PLACES)) for entry in found[newest:]]
|
||||
newest_commit = found[scored[-1]].commit if scored else None
|
||||
start = next((index for index in scored if found[index].commit == newest_commit), 0)
|
||||
parts = [placed(entry, worse_places(entry) + labelled_bullets(entry.body, SCORED_PLACES)) for entry in found[start:]]
|
||||
return "\n".join(part for part in parts if part) or None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user