forked from MarseyWorld/MarseyWorld
exclude yet another chat
parent
f9efa57397
commit
dc9577dc40
|
@ -857,7 +857,7 @@ class User(Base):
|
|||
return g.db.query(ChatMembership).filter(
|
||||
ChatMembership.user_id == self.id,
|
||||
ChatMembership.notification == True,
|
||||
ChatMembership.chat_id.notin_((12,219,320,360,379,395,427,448)),
|
||||
ChatMembership.chat_id.notin_((12,219,320,360,379,395,427,448,454)),
|
||||
).count()
|
||||
return g.db.query(ChatMembership).filter_by(user_id=self.id, notification=True).count()
|
||||
|
||||
|
|
Loading…
Reference in New Issue