free me from chat notifs on rdrama
parent
8632827bc2
commit
3fb3874cd9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue