forked from MarseyWorld/MarseyWorld
fix wrong syntax
parent
282f2c9588
commit
4da6fadae6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue