From e09a257886f41c4666a43a0333e933550f005201 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 22 Feb 2024 21:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E5=88=86=E7=89=87=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/bmcl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ica-rs/plugins/bmcl.py b/ica-rs/plugins/bmcl.py index f104eb0..8c39a19 100644 --- a/ica-rs/plugins/bmcl.py +++ b/ica-rs/plugins/bmcl.py @@ -94,7 +94,7 @@ def parse_rank(data: dict) -> dict: return { "name": data["name"], "start": data["isEnabled"], - "full": "全量" if "fullSize" in data else "分片", + # "full": "全量" if "fullSize" in data else "分片", # "version": data["version"] if "version" in data else "未知版本", "owner": data["sponsor"]["name"] if "sponsor" in data else "未知用户", "rank": rank_data @@ -148,7 +148,7 @@ def bmcl_rank(msg: NewMessage, client: IcaClient, name: Optional[str]) -> None: reply = msg.reply_with(f"搜索|{name}|到{len(counts)}个节点, 请用更精确的名字") else: # 4~10 个节点 只显示名称和次序 - find_msg = [f"{r['full']}-{'✅' if r['start'] else '❌'}{r['name']}-No.{i+1}" for i, r in enumerate(ranks) if finds[i]] + find_msg = [f"{'✅' if r['start'] else '❌'}{r['name']}-No.{i+1}" for i, r in enumerate(ranks) if finds[i]] find_msg = "\n".join(find_msg) report_msg = f"OpenBMCLAPI 面板v{_version_}-搜索|{name}|\n{find_msg}\n" reply = msg.reply_with(report_msg)