diff --git a/files/classes/user.py b/files/classes/user.py index c4c07a224d..a5ef20423a 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -421,7 +421,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.author_id == AUTOJANNY_ID, Comment.body_html.like('