Modmail: constantify missed magic numbers

This commit is contained in:
justcool393 2023-02-16 22:30:57 -06:00 committed by Ben Rog-Wilhelm
parent 1574c46d0a
commit 50b6e06f62
5 changed files with 5 additions and 5 deletions

View file

@ -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: