Skip to content

Commit

Permalink
Impr: Eliminate last round on !end command if no WPM submitted (Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
LifeAdventurer committed Oct 7, 2024
1 parent 1b67ff1 commit 126dd1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cogs/typing_contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ async def end(self, ctx) -> None:
if len(self.wpm_results[participant]) != self.round:
self.wpm_results[participant].append("-")

if self.last_next_used:
self.round -= 1
for participant in self.participants:
if self.wpm_results[participant]:
self.wpm_results[participant].pop()

wpm_result_table = self.get_wpm_result_table()

if self.top_three_participants:
Expand Down

0 comments on commit 126dd1c

Please sign in to comment.