From 7b28b810d036b5eb9c70fdd9f5166d2c6f978cd6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Apr 2022 21:35:27 +0200 Subject: [PATCH] gfd --- files/routes/front.py | 2 +- files/routes/static.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index d1f51838c..a4f749e75 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -42,7 +42,7 @@ def notifications(v): messages = request.values.get('messages') modmail = request.values.get('modmail') posts = request.values.get('posts') - if modmail and v.admin_level > 2: + 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() next_exists = (len(comments) > 25) comments = comments[:25] diff --git a/files/routes/static.py b/files/routes/static.py index a5d9713e6..4cf992ae1 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -322,7 +322,7 @@ def submit_contact(v): ) g.db.add(new_comment) g.db.flush() - for admin in g.db.query(User).filter(User.admin_level > 2).all(): + for admin in g.db.query(User).filter(User.admin_level > 1).all(): notif = Notification(comment_id=new_comment.id, user_id=admin.id) g.db.add(notif)