From 4da6fadae67401c2e2a0eddb40cce3044264dcb2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 4 Oct 2023 22:44:55 +0300 Subject: [PATCH] fix wrong syntax --- files/helpers/alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 26c65a755e..62baec7134 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -224,7 +224,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None, followers_pi def push_notif(uids, title, body, url_or_comment): if hasattr(g, 'v') and g.v and g.v.shadowbanned: - uids = g.db.query(User.id).filter(User.id.in_(uids), User.admin_level >= PERMS['USER_SHADOWBAN']).all() + uids = [x[0] for x in g.db.query(User.id).filter(User.id.in_(uids), User.admin_level >= PERMS['USER_SHADOWBAN']).all()] if not uids: return