From ee7063f70ed238921621cdda4e4f3ae150850454 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 16 Apr 2022 01:28:02 +0200 Subject: [PATCH] fds --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index ba30ff199..bd18eea2c 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: