dfdf
This commit is contained in:
parent
ac61d6b4ab
commit
aed6bbc79d
6 changed files with 8 additions and 14 deletions
|
@ -83,12 +83,7 @@ def flagged_comments(v):
|
|||
|
||||
page = max(1, int(request.args.get("page", 1)))
|
||||
|
||||
posts = g.db.query(Comment
|
||||
).filter_by(
|
||||
is_approved=0,
|
||||
is_banned=False
|
||||
).join(Comment.flags).options(contains_eager(Comment.flags)
|
||||
).order_by(Comment.id.desc()).offset(25 * (page - 1)).limit(26).all()
|
||||
posts = g.db.query(Comment).filter_by(is_approved=0, is_banned=False).join(Comment.flags).options(contains_eager(Comment.flags)).order_by(Comment.id.desc()).offset(25 * (page - 1)).limit(26).all()
|
||||
|
||||
listing = [p.id for p in posts]
|
||||
next_exists = (len(listing) == 26)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue