From 9f5956e77aba839294d89da019b830a16e0c065c Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 25 Feb 2024 02:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=A1=E6=95=B0=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/bmcl.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ica-rs/plugins/bmcl.py b/ica-rs/plugins/bmcl.py index 7771f66..739cbaa 100644 --- a/ica-rs/plugins/bmcl.py +++ b/ica-rs/plugins/bmcl.py @@ -44,7 +44,13 @@ def format_hit_count(count: int) -> str: if count_len <= 4: return count_str else: - return "_".join(count_str[i:i + 4] for i in range(0, count_len, 4)) + # 先倒序 + # 再插入 + # 最后再倒序 + count_str = count_str[::-1] + count_str = "_".join([count_str[i:i+4] for i in range(0, count_len, 4)]) + count_str = count_str[::-1] + return count_str def wrap_request(url: str, msg: NewMessage, client: IcaClient) -> Optional[dict]: