forked from rDrama/rDrama
exempt chat 219
parent
5aa9bbae79
commit
5aee44b2c9
|
@ -850,7 +850,7 @@ class User(Base):
|
||||||
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,
|
||||||
ChatMembership.chat_id != 12,
|
ChatMembership.chat_id.notin_(12,219),
|
||||||
).count()
|
).count()
|
||||||
return g.db.query(ChatMembership).filter_by(user_id=self.id, notification=True).count()
|
return g.db.query(ChatMembership).filter_by(user_id=self.id, notification=True).count()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue