错题处理失败时直接显示具体错误信息。

This commit is contained in:
dekun
2026-06-28 13:54:43 +08:00
parent a2a6d59f7c
commit a145f38606
9 changed files with 159 additions and 106 deletions
+2
View File
@@ -75,6 +75,8 @@ def run_migrations() -> None:
wq_alters.append("ADD COLUMN mark_regions_json TEXT")
if "annotated_image_path" not in wq_columns:
wq_alters.append("ADD COLUMN annotated_image_path VARCHAR(512)")
if "error_message" not in wq_columns:
wq_alters.append("ADD COLUMN error_message TEXT")
if wq_alters:
with engine.begin() as conn:
for clause in wq_alters: