forked from rDrama/rDrama
1
0
Fork 0

add exception

master
Aevann 2024-06-02 10:55:44 +03:00
parent 694f25de34
commit b961876cd7
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,360)),
ChatMembership.chat_id.notin_((12,219,320,360)),
).count()
return g.db.query(ChatMembership).filter_by(user_id=self.id, notification=True).count()