W7/W8:先修图扩到 4-6 年级(80 点/106 边,草稿) + 连错三次也退一层(270 测试)

This commit is contained in:
dsh
2026-11-24 20:25:25 +08:00
parent dfc9656eb2
commit b470d189fc
6 changed files with 1140 additions and 113 deletions
+3
View File
@@ -1002,6 +1002,9 @@ def attempt(conn, gid: str, cid: str, mid: str, answer_text: str, cost_ms: int |
"unstable": state["status"] == "unstable",
"unstable_hint": ("这次算「会但不稳」——明天同一道题再做对一次,才往前算。"
if state["status"] == "unstable" else None),
# 连错三次:不再排同一道,先退一层补前置(讲清失败那条路走 retreat,这里同源)
"retreat": (kp_graph.retreat(mdict.get("kp"))
if (not correct and int(state.get("wrong_count") or 0) >= 3) else None),
}