bv
This commit is contained in:
parent
2e471bd662
commit
bc0909e8dc
7 changed files with 14 additions and 14 deletions
|
@ -42,7 +42,7 @@ def notifications(v):
|
|||
modmail = request.values.get('modmail')
|
||||
posts = request.values.get('posts')
|
||||
if modmail and v.admin_level > 1:
|
||||
comments = g.db.query(Comment).filter(Comment.sentto==0).order_by(Comment.id.desc()).offset(25*(page-1)).limit(26).all()
|
||||
comments = g.db.query(Comment).filter(Comment.sentto==2).order_by(Comment.id.desc()).offset(25*(page-1)).limit(26).all()
|
||||
next_exists = (len(comments) > 25)
|
||||
comments = comments[:25]
|
||||
elif messages:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue