From 9a3ed5fa7a500840c8404c3196c8df2f02315d53 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 5 Aug 2026 18:20:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20context=20API=20=E8=BF=AD=E4=BB=A3?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=94=AF=E6=8C=81=E5=90=8D=E7=A7=B0=E5=9B=9E?= =?UTF-8?q?=E8=90=BD=EF=BC=88UUID/=E5=90=8D=E7=A7=B0=E5=8F=8C=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/cockpit_context.dspy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/api/cockpit_context.dspy b/wwwroot/api/cockpit_context.dspy index 7a516a4..e45a46c 100644 --- a/wwwroot/api/cockpit_context.dspy +++ b/wwwroot/api/cockpit_context.dspy @@ -25,7 +25,8 @@ async with DBPools().sqlorContext(dbname) as sor: ws_dir = getattr(precs[0], 'workspace_dir', '') or '' if iid: irecs = await sor.sqlExe( - "SELECT iteration_name FROM sd_iterations WHERE id=${iid}$", {"iid": iid}) + "SELECT iteration_name FROM sd_iterations WHERE id=${iid}$ OR iteration_name=${iid}$ AND project_id=${pid}$", + {"iid": iid, "pid": pid}) if irecs and len(irecs) > 0: iname = getattr(irecs[0], 'iteration_name', '') or ''