From cf83a996bdc9f8409a32949fc605423b97c9341b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 11 Jun 2022 16:40:14 +0200 Subject: [PATCH] let losers know how much coins the winner won --- files/helpers/lottery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py index 7c83330fd..73858ca1b 100644 --- a/files/helpers/lottery.py +++ b/files/helpers/lottery.py @@ -52,7 +52,7 @@ def end_lottery_session(): + f'Congratulations!\nOdds of winning: {chance_to_win}%' else: notification_text = f'You did not win the lottery. Better luck next time!\n' \ - + f'Odds of winning: {chance_to_win}%\nWinner: @{winning_user.username}' + + f'Odds of winning: {chance_to_win}%\nWinner: @{winning_user.username} (won {active_lottery.prize} coins)' send_repeatable_notification(user.id, notification_text) user.currently_held_lottery_tickets = 0 @@ -125,4 +125,4 @@ def grant_lottery_tickets_to_user(v, quantity): active_lottery.prize += prize_value active_lottery.tickets_sold += quantity - g.db.commit() \ No newline at end of file + g.db.commit()