From b4b3e03dc75e3d5c8457ca247fbf84b688e6ab1b Mon Sep 17 00:00:00 2001 From: justcool393 Date: Mon, 24 Jul 2023 06:33:49 -0500 Subject: [PATCH] there was a typo introduced when the new statemod system was introduced. we fix that. --- files/routes/admin/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin/admin.py b/files/routes/admin/admin.py index c2a8e88d1..866892053 100644 --- a/files/routes/admin/admin.py +++ b/files/routes/admin/admin.py @@ -811,7 +811,7 @@ def admin_removed_comments(v): try: page = int(request.values.get("page", 1)) except: page = 1 - ids = g.db.query(Comment.id).join(User, User.id == Comment.author_id).filter(or_(Comment.state_mode == StateMod.REMOVED, User.shadowbanned != None)).order_by(Comment.id.desc()).offset(25 * (page - 1)).limit(26).all() + ids = g.db.query(Comment.id).join(User, User.id == Comment.author_id).filter(or_(Comment.state_mod == StateMod.REMOVED, User.shadowbanned != None)).order_by(Comment.id.desc()).offset(25 * (page - 1)).limit(26).all() ids=[x[0] for x in ids]