forked from rDrama/rDrama
1
0
Fork 0

add site condition

master
Aevann 2024-06-02 11:00:39 +03:00
parent b961876cd7
commit 2acba8153e
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ class User(Base):
@property
@lazy
def chats_notifications_count(self):
if self.id == AEVANN_ID:
if self.id == AEVANN_ID and SITE == 'rdrama.net':
return g.db.query(ChatMembership).filter(
ChatMembership.user_id == self.id,
ChatMembership.notification == True,