Make a few styling changes for mobile lottery modal (#293)

master
outruncolors 2022-05-30 00:40:55 -05:00 committed by GitHub
parent b5533c6f4a
commit 0abf890575
2 changed files with 11 additions and 5 deletions

View File

@ -49,6 +49,8 @@ def end_lottery_session():
active_lottery.is_active = False
manager = g.db.query(User).get(LOTTERY_MANAGER_ACCOUNT_ID)
if manager:
manager.coins -= active_lottery.prize
g.db.commit()
@ -88,6 +90,8 @@ def purchase_lottery_ticket(v):
grant_lottery_proceeds_to_manager(net_ticket_value)
beneficiary = g.db.query(User).get(LOTTERY_ROYALTY_ACCOUNT_ID)
if beneficiary:
beneficiary.coins += LOTTERY_ROYALTY_RATE
g.db.commit()
@ -96,6 +100,8 @@ def purchase_lottery_ticket(v):
def grant_lottery_proceeds_to_manager(amount):
manager = g.db.query(User).get(LOTTERY_MANAGER_ACCOUNT_ID)
if manager:
manager.coins += amount
def grant_lottery_tickets_to_user(v, amount):

View File

@ -139,7 +139,7 @@
margin: 0 auto;
left: 0;
right: 0;
width: 275px;
width: unset;
z-index: 1000;
"
role="alert"
@ -165,7 +165,7 @@
margin: 0 auto;
left: 0;
right: 0;
width: 275px;
width: unset;
z-index: 1000;
"
role="alert"