exclude me from under_siege notifs

master
Aevann 2024-02-05 06:25:06 +02:00
parent c9aaca7b80
commit 4edb4998cf
1 changed files with 4 additions and 1 deletions

View File

@ -560,7 +560,10 @@ def execute_under_siege(v, target, body, kind):
g.db.add(ma)
if kind == 'message':
notified_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['BLACKJACK_NOTIFICATIONS'])]
notified_ids = [x[0] for x in g.db.query(User.id).filter(
User.admin_level >= PERMS['BLACKJACK_NOTIFICATIONS'],
User.id != AEVANN_ID,
)]
for uid in notified_ids:
n = Notification(comment_id=target.id, user_id=uid)
g.db.add(n)