We shall not divide by zero
This commit is contained in:
parent
18c9cee540
commit
d7e278ebf3
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ def stats(bot, update):
|
|||
)
|
||||
|
||||
n = us.first_places
|
||||
m = round((us.first_places / us.games_played) * 100)
|
||||
m = round((us.first_places / us.games_played) * 100) if games_played else 0
|
||||
stats_text.append(
|
||||
_("{number} first place ({percent}%)",
|
||||
"{number} first places ({percent}%)",
|
||||
|
|
Loading…
Reference in a new issue