兼容单科和总分

This commit is contained in:
2026-10-07 14:27:48 +08:00
parent eeae5f9d68
commit 310c61a179
7 changed files with 136 additions and 23 deletions

View File

@@ -347,8 +347,10 @@ def analyze(parsed: dict, settings: dict) -> dict:
}
)
score_kind = parsed.get("score_kind") or "总分"
return {
"algorithm": "adjacent-layer-markov-v2",
"score_kind": score_kind,
"exams": exams,
"layer_size": LAYER_SIZE,
"pair_count": len(probability_exams) - 1 if len(probability_exams) > 1 else 0,