From 018358cbb122234745fbd206225ed4ce6a2ff3b9 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Wed, 15 Jul 2026 18:36:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20EditPlanResponse=E6=9A=B4=E9=9C=B2result?= =?UTF-8?q?=5Fcount=E5=AD=97=E6=AE=B5=EF=BC=88=E5=88=97=E8=A1=A8/=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=8E=A5=E5=8F=A3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/app/api/routes/edit_plans.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/api/app/api/routes/edit_plans.py b/apps/api/app/api/routes/edit_plans.py index 28907d21b..b5f6b775a 100755 --- a/apps/api/app/api/routes/edit_plans.py +++ b/apps/api/app/api/routes/edit_plans.py @@ -72,6 +72,7 @@ class EditPlanResponse(BaseModel): name: str status: str total_duration: float + result_count: int = 0 project_id: str = "" created_by_user_id: str = "" config: dict[str, Any] @@ -241,6 +242,7 @@ def _to_response(p: EditPlan) -> EditPlanResponse: name=p.name, status=p.status.value if hasattr(p.status, "value") else p.status, total_duration=p.total_duration, + result_count=getattr(p, "result_count", 0), project_id=p.project_id or "", created_by_user_id=p.created_by_user_id or "", config=p.config,