exclude yet another chat

master
Aevann 2024-07-07 18:41:38 +03:00
parent f9efa57397
commit dc9577dc40
1 changed files with 1 additions and 1 deletions

View File

@ -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()