File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,7 @@ async def count_poll_results(message_sent, poll_time_in_sec):
402
402
tie = True
403
403
404
404
# If there's a tie, find out which results tied and make a string out of them, then print results
405
+ winner_percentage = round ((results [winner ] / total_votes ) * 100 , 2 )
405
406
if tie :
406
407
tied_emojis = []
407
408
tie_string = ""
@@ -420,7 +421,6 @@ async def count_poll_results(message_sent, poll_time_in_sec):
420
421
421
422
# Otherwise, show winner
422
423
else :
423
- winner_percentage = round ((results [winner ] / total_votes ) * 100 , 2 )
424
424
await message_sent .channel .send (f"Voting for \" { prompt } \" complete. { winner } is the winner with { results [winner ]} ({ winner_percentage } %) votes!" )
425
425
426
426
await count_poll_results (message_sent , poll_time_in_sec )
You can’t perform that action at this time.
0 commit comments