From a5f21ea65814d54647fcfd12280e8a571c4fd1c9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 3 Jul 2023 00:48:23 +0300 Subject: [PATCH] restore /update for !everyone since its needed --- files/helpers/alerts.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index c4b63cda6..7fcc11b22 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -158,9 +158,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None): if cost > v.coins: abort(403, f"You need {cost} coins to mention these ping groups!") - for user in g.db.query(User).all(): - user.pay_account('coins', 5) - g.db.add(user) + g.db.query(User).update({ User.coins: User.coins + 5 }) v.charge_account('coins', cost) if log_cost: