From 6a8eff839342a16dd98a321f196478eb128d9716 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 16 Apr 2022 01:19:27 +0200 Subject: [PATCH] fds --- files/classes/user.py | 2 +- files/routes/front.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index a2d5397ef..a3ae18335 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -437,7 +437,7 @@ class User(Base): @property @lazy def reddit_notifications_count(self): - return g.db.query(Notification.user_id).join(Comment).filter(Notification.user_id == self.id, Notification.read == False, Comment.is_banned == False, Comment.deleted_utc == 0, Comment.body_html.like('

New site mention: len(listing)) elif reddit: - notifications = g.db.query(Notification, Comment).join(Comment, Notification.comment_id == Comment.id).filter(Notification.user_id == v.id, Comment.body_html.like('

New site mention:

New site mention:

New site mention: 2): @@ -129,7 +129,7 @@ def notifications(v): Comment.is_banned == False, Comment.deleted_utc == 0, Comment.author_id != AUTOJANNY_ID, - Comment.body_html.notlike('

New site mention: