From 8e8100c917a8d97a37523d345c3b1123b8314de0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 17 Dec 2021 05:51:21 +0200 Subject: [PATCH] fdssdf --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index bb4a1268b..74a5d2224 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -68,7 +68,7 @@ def revert_actions(v, username): g.db.add(item) users = (x[0] for x in g.db.query(ModAction.target_user_id).filter(ModAction.user_id == user.id, ModAction.created_utc > cutoff, ModAction.kind.in_(('shadowban', 'ban_user'))).all()) - users = g.db.query(User).filter_by(id.in_(users)).all() + users = g.db.query(User).filter(User.id.in_(users)).all() for user in users: user.shadowbanned = None