quick fix !debug
This commit is contained in:
parent
31bd60f814
commit
3ef5a9b459
|
@ -499,7 +499,7 @@ class VkBot:
|
||||||
winrate = (i['game_wins']/(i['game_wins']+i['game_defeats']+i['game_draws'])) * 100
|
winrate = (i['game_wins']/(i['game_wins']+i['game_defeats']+i['game_draws'])) * 100
|
||||||
except ZeroDivisionError:
|
except ZeroDivisionError:
|
||||||
winrate = 0
|
winrate = 0
|
||||||
answer += f"<br> @id{i['chat_id']} - Сыграл раз: {i['game_wins']+i['game_defeats']+i['game_draws']}, Победы/Ничьи/Поражения: {i['game_wins']}/{i['game_defeats']}/{i['game_draws']}, {toFixed(winrate, 2)}% побед"
|
answer += f"<br> @id{i['chat_id']} - Сыграл раз: {i['game_wins']+i['game_defeats']+i['game_draws']}, Победы/Ничьи/Поражения: {i['game_wins']}/{i['game_draws']}/{i['game_defeats']}, {toFixed(winrate, 2)}% побед"
|
||||||
else:
|
else:
|
||||||
answer = "Никто не пользуется !game"
|
answer = "Никто не пользуется !game"
|
||||||
return answer
|
return answer
|
||||||
|
|
Loading…
Reference in New Issue