backend/app/grading.py
@@ -10,6 +10,12 @@ if item_type == 288: letters = re.findall(r"[A-Z]", s.replace(",", "")) return "".join(sorted(set(letters))) if item_type == 320: # 判断题兼容:T = 正确(A),F = 错误(B) if s == "T": return "A" if s == "F": return "B" return s.replace(",", "").strip()