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,7 +49,9 @@ def end_lottery_session():
active_lottery.is_active = False active_lottery.is_active = False
manager = g.db.query(User).get(LOTTERY_MANAGER_ACCOUNT_ID) manager = g.db.query(User).get(LOTTERY_MANAGER_ACCOUNT_ID)
manager.coins -= active_lottery.prize
if manager:
manager.coins -= active_lottery.prize
g.db.commit() g.db.commit()
@ -88,7 +90,9 @@ def purchase_lottery_ticket(v):
grant_lottery_proceeds_to_manager(net_ticket_value) grant_lottery_proceeds_to_manager(net_ticket_value)
beneficiary = g.db.query(User).get(LOTTERY_ROYALTY_ACCOUNT_ID) beneficiary = g.db.query(User).get(LOTTERY_ROYALTY_ACCOUNT_ID)
beneficiary.coins += LOTTERY_ROYALTY_RATE
if beneficiary:
beneficiary.coins += LOTTERY_ROYALTY_RATE
g.db.commit() g.db.commit()
@ -96,7 +100,9 @@ def purchase_lottery_ticket(v):
def grant_lottery_proceeds_to_manager(amount): def grant_lottery_proceeds_to_manager(amount):
manager = g.db.query(User).get(LOTTERY_MANAGER_ACCOUNT_ID) manager = g.db.query(User).get(LOTTERY_MANAGER_ACCOUNT_ID)
manager.coins += amount
if manager:
manager.coins += amount
def grant_lottery_tickets_to_user(v, amount): def grant_lottery_tickets_to_user(v, amount):
active_lottery = get_active_lottery() active_lottery = get_active_lottery()

View File

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