remotes/1693045480750635534/spooky-22
Aevann1 2022-04-03 20:05:11 +02:00
parent a64afd837c
commit 73af57f141
1 changed files with 1 additions and 1 deletions

View File

@ -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('<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 rdrama mention: <a href="https://old.reddit.com/r/%')).count()
@property
@lazy