This commit is contained in:
Aevann1 2022-04-10 01:12:59 +02:00
parent 99a8e1767c
commit 77ec52f07d
3 changed files with 7 additions and 7 deletions

View file

@ -433,7 +433,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('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')).count()
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('<html><body><p>New site mention: <a href="https://old.reddit.com/r/%')).count()
@property
@lazy