From 32279c094cb64336230f98a37b94e60085b0f366 Mon Sep 17 00:00:00 2001 From: ATRI Date: Thu, 9 Jul 2026 09:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=89=80?= =?UTF-8?q?=E6=9C=89=E8=B7=A8=E8=A1=8C=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=9C=AA?= =?UTF-8?q?=E9=97=AD=E5=90=88=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI My Dear Moments/skills/atri_cf_query_plugin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ATRI My Dear Moments/skills/atri_cf_query_plugin.py b/ATRI My Dear Moments/skills/atri_cf_query_plugin.py index b1f41b0..65402e7 100644 --- a/ATRI My Dear Moments/skills/atri_cf_query_plugin.py +++ b/ATRI My Dear Moments/skills/atri_cf_query_plugin.py @@ -291,8 +291,7 @@ def _build_text_report(handle: str, user_info: dict, history: list, analysis: di for a in s["recent_ac"][:5]: rtg = f"[{a['rating']}]" if a["rating"] else "[?]" lines.append(f" ✅ {a['pid']} {rtg} {a['name']}") - return " -".join(lines) + return "\n".join(lines) def _build_analysis_prompt(handle: str, user_info: dict, history: list, analysis: dict) -> str: @@ -306,8 +305,7 @@ def _build_analysis_prompt(handle: str, user_info: dict, history: list, analysis best_rank = min((c["rank"] for c in history), default="无") ac_rate = f"{analysis['ac']/analysis['total']*100:.1f}%" if analysis["total"] > 0 else "无数据" recent = analysis["recent_ac"][:5] - recent_str = " -".join(f" - {a['pid']} [{a['rating']}] {a['name']}" for a in recent) if recent else " 无" + recent_str = "\n".join(f" - {a['pid']} [{a['rating']}] {a['name']}" for a in recent) if recent else " 无" dist_parts = [] for r, c in sorted(analysis["rating_dist"].items()): lbl = "Unrated" if r == 0 else str(r)