From fe5b7a98ecccac2ddd0cd828cbd5754952ac6aab Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 7 Aug 2026 17:43:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20task=E6=9F=A5=E8=AF=A2=E6=8C=89project?= =?UTF-8?q?=5Fid=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/cockpit_project_tasks.dspy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wwwroot/api/cockpit_project_tasks.dspy b/wwwroot/api/cockpit_project_tasks.dspy index d2a0b65..b82776e 100644 --- a/wwwroot/api/cockpit_project_tasks.dspy +++ b/wwwroot/api/cockpit_project_tasks.dspy @@ -26,11 +26,11 @@ async with DBPools().sqlorContext(dbname) as sor: if precs and len(precs) > 0: pname = getattr(precs[0], 'name', '') or '' - # Get tasks + # Get tasks for this project (tenant_id = project_id for SDLC tasks) tasks = await sor.sqlExe( "SELECT id, title, state, current_version, created_at, params, role " - "FROM pipeline_tasks WHERE tenant_id='0' ORDER BY created_at DESC LIMIT 50", - {}) + "FROM pipeline_tasks WHERE tenant_id=${pid}$ ORDER BY created_at DESC LIMIT 50", + {"pid": pid}) task_list = [] for t in tasks: