From 4edb4998cf32f2563709cb20a348efeaf32d6c72 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 5 Feb 2024 06:25:06 +0200 Subject: [PATCH] exclude me from under_siege notifs --- files/helpers/actions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index b7e64992b..0ade4c962 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -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)