forked from rDrama/rDrama
add site condition
parent
b961876cd7
commit
2acba8153e
|
@ -853,7 +853,7 @@ class User(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def chats_notifications_count(self):
|
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(
|
return g.db.query(ChatMembership).filter(
|
||||||
ChatMembership.user_id == self.id,
|
ChatMembership.user_id == self.id,
|
||||||
ChatMembership.notification == True,
|
ChatMembership.notification == True,
|
||||||
|
|
Loading…
Reference in New Issue