forked from rDrama/rDrama
dont repeat urself
parent
935820bedb
commit
83c8af6f85
|
@ -215,10 +215,11 @@ def award_thing(v, thing_type, id):
|
||||||
else:
|
else:
|
||||||
awarded_coins = 0
|
awarded_coins = 0
|
||||||
|
|
||||||
|
if awarded_coins:
|
||||||
if kind == 'shit':
|
if kind == 'shit':
|
||||||
author.charge_account('coins', awarded_coins, should_check_balance=False)
|
author.charge_account('coins', awarded_coins, should_check_balance=False)
|
||||||
v.pay_account('coins', awarded_coins)
|
v.pay_account('coins', awarded_coins)
|
||||||
elif AWARDS[kind]['cosmetic']:
|
else:
|
||||||
author.pay_account('coins', awarded_coins)
|
author.pay_account('coins', awarded_coins)
|
||||||
|
|
||||||
if thing_type == 'comment':
|
if thing_type == 'comment':
|
||||||
|
|
Loading…
Reference in New Issue