From ea26cbe4c509bbc98fcdbcd74f28d90b3eb1b152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Wed, 17 Nov 2021 12:33:46 +0100 Subject: [PATCH] Fix check for games played --- simple_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_commands.py b/simple_commands.py index 4c8979f..002f9ca 100644 --- a/simple_commands.py +++ b/simple_commands.py @@ -126,7 +126,7 @@ def stats(bot, update): ) 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( _("{number} first place ({percent}%)", "{number} first places ({percent}%)",