From a1ddf7a9caec99b05735c1229550b7d29f67cba9 Mon Sep 17 00:00:00 2001 From: ymq Date: Fri, 4 Sep 2026 19:52:54 +0800 Subject: [PATCH] =?UTF-8?q?tmp:=20kb=5Fdiag4=E4=BF=AE=E6=AD=A3SQL=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/kb_diag4.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/api/kb_diag4.dspy b/wwwroot/api/kb_diag4.dspy index 48866f1..2cea0cd 100644 --- a/wwwroot/api/kb_diag4.dspy +++ b/wwwroot/api/kb_diag4.dspy @@ -25,14 +25,14 @@ try: async with DBPools().sqlorContext(dbname) as sor: recs = await sor.sqlExe( "SELECT id, kb_id, file_name, status FROM pipeline_kb_suggestions " - "ORDER BY created_at DESC LIMIT 1") + "ORDER BY created_at DESC LIMIT 1", {}) await sor.sqlExe("COMMIT", {}) if recs: out["suggestion"] = {"id": recs[0].id, "kb_id": recs[0].kb_id, "file_name": recs[0].file_name, "status": recs[0].status} ht = await sor.sqlExe( "SELECT id, task_type, assignee_id, status, form_schema FROM pipeline_human_tasks " - "WHERE task_type='kb_ingest_confirm' ORDER BY created_at DESC LIMIT 1") + "WHERE task_type='kb_ingest_confirm' ORDER BY created_at DESC LIMIT 1", {}) await sor.sqlExe("COMMIT", {}) if ht: out["human_task"] = {"id": ht[0].id, "task_type": ht[0].task_type,