let losers know how much coins the winner won

master
Aevann1 2022-06-11 16:40:14 +02:00
parent b94fabddb4
commit cf83a996bd
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ def end_lottery_session():
+ f'Congratulations!\nOdds of winning: {chance_to_win}%' + f'Congratulations!\nOdds of winning: {chance_to_win}%'
else: else:
notification_text = f'You did not win the lottery. Better luck next time!\n' \ 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) send_repeatable_notification(user.id, notification_text)
user.currently_held_lottery_tickets = 0 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.prize += prize_value
active_lottery.tickets_sold += quantity active_lottery.tickets_sold += quantity
g.db.commit() g.db.commit()