From e4ba041d04047117c805a96de51362394202b7b2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 31 Aug 2021 18:12:23 +0200 Subject: [PATCH] fdfd --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 8c22b3d664..45116a8d68 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -24,7 +24,7 @@ def notifications(v): messages = request.args.get('messages', False) posts = request.args.get('posts', False) if messages: - if v.admin_level == 6: comments = g.db.query(Comment).filter(Comment.child_comments == []).all() + if v.admin_level == 6: comments = g.db.query(Comment).filter_by(child_comments = []).all() next_exists = (len(comments) == 26) comments = comments[:25] elif posts: