Count how often seats agree in a paired ruling and across scoring runs

This commit is contained in:
2026-10-17 20:49:53 +02:00
parent 312d5cff44
commit 22525c4af4
9 changed files with 107 additions and 13 deletions
+9
View File
@@ -1,6 +1,7 @@
import pathlib
import time
from larv_review.agreement import agreement_report
from comprehension_history import appended, DIMENSIONS, heading, Heading, HISTORY, latest_places, recorded, ruling_entry, scoring_entry, ScoringRun, vote_text
from git_repo import commit_exists, top
from larv_review.ruling import counted, overall, ruling, split, votes
@@ -85,6 +86,14 @@ def show_places() -> Failure | None:
return None
def show_agreement() -> Failure | None:
history = history_file()
if isinstance(history, Failure):
return history
print(agreement_report(history[1]))
return None
def history_file() -> tuple[pathlib.Path, str] | Failure:
"""The checkout's history and its text, empty when the file is missing."""
checkout = top()