forked from rDrama/rDrama
remove empty pages
parent
d7a2226fdb
commit
1bb9c25aa3
|
@ -157,6 +157,9 @@ def modmail_listing(v):
|
||||||
|
|
||||||
comments = g.db.query(Comment).filter(Comment.id == sq.c.top_comment_id).order_by(sq.c.created_utc.desc())
|
comments = g.db.query(Comment).filter(Comment.id == sq.c.top_comment_id).order_by(sq.c.created_utc.desc())
|
||||||
|
|
||||||
|
if v.admin_level < PERMS['VIEW_MODMAIL']:
|
||||||
|
comments = comments.filter_by(author_id=v.id)
|
||||||
|
|
||||||
total = comments.count()
|
total = comments.count()
|
||||||
listing = comments.order_by(Comment.id.desc()).offset(PAGE_SIZE*(page-1)).limit(PAGE_SIZE).all()
|
listing = comments.order_by(Comment.id.desc()).offset(PAGE_SIZE*(page-1)).limit(PAGE_SIZE).all()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue