From 72c1e7a49438a3ff005e1e84f34a87bffd8c6de9 Mon Sep 17 00:00:00 2001 From: dongdigua Date: Fri, 9 Aug 2024 14:24:28 +0800 Subject: [PATCH] hyp_vote.py: fmt_vote --- plugins/hyp_vote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hyp_vote.py b/plugins/hyp_vote.py index f21d196..d30d895 100644 --- a/plugins/hyp_vote.py +++ b/plugins/hyp_vote.py @@ -15,8 +15,8 @@ def fmt_vote(room_id) -> str: global VOTE if room_id not in VOTE: VOTE[room_id] = EMPTY_VOTE.copy() - return "|".join( - f"{x}{VOTE[room_id][x] if VOTE[room_id][x] else ''}" for x in VOTE[room_id] + return "\n".join( + f"{x}: {len(VOTE[room_id][x])}" for x in VOTE[room_id] if VOTE[room_id][x] )