free me from chat notifs on rdrama

pull/225/head
Aevann 2024-03-15 05:39:50 +02:00
parent 8632827bc2
commit 3fb3874cd9
1 changed files with 2 additions and 0 deletions

View File

@ -836,6 +836,8 @@ class User(Base):
@lazy
def chat_notifications_count(self, chat_id):
if self.id == AEVANN_ID and SITE_NAME != 'WPD':
return 0
return len(g.db.query(ChatNotification.user_id).filter_by(user_id=self.id, chat_id=chat_id).one_or_none())
@property