hyp_vote.py: fmt_vote
This commit is contained in:
parent
43b31dc144
commit
72c1e7a494
@ -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]
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user