Modmail: constantify missed magic numbers
This commit is contained in:
parent
1574c46d0a
commit
50b6e06f62
5 changed files with 5 additions and 5 deletions
|
@ -51,7 +51,7 @@ def notifications(v):
|
|||
posts = request.values.get('posts')
|
||||
reddit = request.values.get('reddit')
|
||||
if modmail and v.admin_level > 1:
|
||||
comments = g.db.query(Comment).filter(Comment.sentto==2).order_by(Comment.id.desc()).offset(25*(page-1)).limit(26).all()
|
||||
comments = g.db.query(Comment).filter(Comment.sentto == MODMAIL_ID).order_by(Comment.id.desc()).offset(25*(page-1)).limit(26).all()
|
||||
next_exists = (len(comments) > 25)
|
||||
listing = comments[:25]
|
||||
elif messages:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue