Fix check for games played

This commit is contained in:
Jannes Höke 2021-11-17 12:33:46 +01:00 committed by GitHub
parent 2cb72d45f9
commit ea26cbe4c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ def stats(bot, update):
) )
n = us.first_places n = us.first_places
m = round((us.first_places / us.games_played) * 100) if games_played else 0 m = round((us.first_places / us.games_played) * 100) if us.games_played else 0
stats_text.append( stats_text.append(
_("{number} first place ({percent}%)", _("{number} first place ({percent}%)",
"{number} first places ({percent}%)", "{number} first places ({percent}%)",