From 795300cb834fba97fa9772016cef0aa4156012f8 Mon Sep 17 00:00:00 2001 From: Passthem Date: Sat, 1 Nov 2025 18:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=AF=8F=E6=97=A5=E7=AD=94=E9=A2=98?= =?UTF-8?q?=E6=83=85=E5=86=B5=E6=B7=BB=E5=8A=A0=E8=AE=B0=E5=BD=95=E7=82=B9?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- konabot/plugins/kona_ph/core/message.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/konabot/plugins/kona_ph/core/message.py b/konabot/plugins/kona_ph/core/message.py index b4833cf..50c5a27 100644 --- a/konabot/plugins/kona_ph/core/message.py +++ b/konabot/plugins/kona_ph/core/message.py @@ -130,7 +130,18 @@ def get_daily_report_v2(manager: PuzzleManager, gid: int | None = None): if re.match(r"^\d+$", u): uname = get_username(int(u), gid) tries = len(manager.submissions[p.raw_id][u]) - msg += f"\n- {uname} [💦 {tries} 提交]" + checkpoints_touched = len(set(( + s.hint_id for s in manager.submissions[p.raw_id][u] + if ( + s.hint_id >= 0 + and s.hint_id in p.hints + and p.hints[s.hint_id].is_checkpoint + ) + ))) + checkpoint_message = "" + if checkpoints_touched > 0: + checkpoint_message = f" | 🚩 {checkpoints_touched} 记录点" + msg += f"\n- {uname} [💦 {tries} 提交{checkpoint_message}]" return msg