From 11c20c9b11482f1fcd16215f67551f6a43c02980 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 16 Jan 2022 08:20:11 +0200 Subject: [PATCH] bbb --- files/routes/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index c783550ec..e0b2ef440 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -630,6 +630,8 @@ def admin_link_accounts(v): def admin_removed(v): page = int(request.values.get("page", 1)) + + if page < 1: abort(400) ids = g.db.query(Submission.id).join(User, User.id == Submission.author_id).filter(or_(Submission.is_banned==True, User.shadowbanned != None)).order_by(Submission.id.desc()).offset(25 * (page - 1)).limit(26).all()