master
Aevann1 2021-10-10 06:07:06 +02:00
parent 4e7d14a014
commit bceee90555
1 changed files with 2 additions and 0 deletions

View File

@ -629,6 +629,8 @@ def admin_removed(v):
shadowbanned = [x[0] for x in g.db.query(User.id).options(lazyload('*')).filter(User.shadowbanned != None).all()]
print(shadowbanned)
ids = g.db.query(Submission.id).options(lazyload('*')).filter(or_(Submission.is_banned==True, Submission.id.in_(shadowbanned))).order_by(Submission.id.desc()).offset(25 * (page - 1)).limit(26).all()
ids=[x[0] for x in ids]