forked from rDrama/rDrama
restore /update for !everyone since its needed
parent
25b9a0f535
commit
a5f21ea658
|
@ -158,9 +158,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None):
|
||||||
if cost > v.coins:
|
if cost > v.coins:
|
||||||
abort(403, f"You need {cost} coins to mention these ping groups!")
|
abort(403, f"You need {cost} coins to mention these ping groups!")
|
||||||
|
|
||||||
for user in g.db.query(User).all():
|
g.db.query(User).update({ User.coins: User.coins + 5 })
|
||||||
user.pay_account('coins', 5)
|
|
||||||
g.db.add(user)
|
|
||||||
|
|
||||||
v.charge_account('coins', cost)
|
v.charge_account('coins', cost)
|
||||||
if log_cost:
|
if log_cost:
|
||||||
|
|
Loading…
Reference in New Issue