From a5cf74161e4ef3df56659cd86bc573ebb60f666d Mon Sep 17 00:00:00 2001 From: hmo Date: Tue, 28 Apr 2026 09:31:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20'=E5=86=85=E5=AE=B9=EF=BC=9A'?= =?UTF-8?q?=20label=20from=20student=5Fgoals=20in=20PDF=20export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routes/plans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/plans.py b/app/routes/plans.py index 4f2c276..f6f8f52 100644 --- a/app/routes/plans.py +++ b/app/routes/plans.py @@ -664,7 +664,7 @@ def export_pdf(plan_id): goals_text_parts = [] for g in student_goals_list: if g.status != "已完成": - goals_text_parts.append(f"- **{g.goal.name}**\n 内容:{g.goal.content if g.goal else '未提供具体内容'}") + goals_text_parts.append(f"- **{g.goal.name}**\n {g.goal.content if g.goal else '未提供具体内容'}") goals_text = "\n".join(goals_text_parts) if goals_text_parts else "(无)" rendered_report = rendered_report.replace("{student_goals}", goals_text)