From e9f8b87ee1134bf30c23e25dd4f9c54f316275b1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 3 Apr 2023 19:58:14 +0200 Subject: [PATCH] include more digits in "chance of winning" --- files/helpers/lottery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py index 7feeed750..46c0e8fce 100644 --- a/files/helpers/lottery.py +++ b/files/helpers/lottery.py @@ -54,7 +54,7 @@ def end_lottery_session(): for user in participating_users: chance_to_win = user.currently_held_lottery_tickets / len(raffle) * 100 - chance_to_win = str(chance_to_win)[:3] + chance_to_win = str(chance_to_win)[:5] if user.id == winner: notification_text = f'You won {active_lottery.prize} coins in the lottershe! ' \ + f'Congratulations!\n\nYour odds of winning were: {chance_to_win}%'