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,