From 3acc525e0c30860fcd5ec169f3aa6f1edb02d9d2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 29 Nov 2022 00:21:48 +0200 Subject: [PATCH] truncate odds of lottery winning --- files/helpers/lottery.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py index 8c70e95d2..3acd09374 100644 --- a/files/helpers/lottery.py +++ b/files/helpers/lottery.py @@ -54,6 +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] if user.id == winner: notification_text = f'You won {active_lottery.prize} coins in the lottershe! ' \ + f'Congratulations!\nYour odds of winning were: {chance_to_win}%'