dont repeat urself

master
Aevann 2023-10-10 18:11:32 +03:00
parent 935820bedb
commit 83c8af6f85
1 changed files with 6 additions and 5 deletions

View File

@ -215,11 +215,12 @@ def award_thing(v, thing_type, id):
else:
awarded_coins = 0
if kind == 'shit':
author.charge_account('coins', awarded_coins, should_check_balance=False)
v.pay_account('coins', awarded_coins)
elif AWARDS[kind]['cosmetic']:
author.pay_account('coins', awarded_coins)
if awarded_coins:
if kind == 'shit':
author.charge_account('coins', awarded_coins, should_check_balance=False)
v.pay_account('coins', awarded_coins)
else:
author.pay_account('coins', awarded_coins)
if thing_type == 'comment':
link_text_in_notif = "your comment"