From c8181148ac9d902d3c36c1b420c79a9c6d52eb23 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 31 Jan 2024 21:49:53 +0200 Subject: [PATCH] restore exclusions --- files/routes/holes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/holes.py b/files/routes/holes.py index 0f580ad78..abc42235d 100644 --- a/files/routes/holes.py +++ b/files/routes/holes.py @@ -393,7 +393,8 @@ def create_sub2(v): text_html = sanitize(text, blackjack="notification") cid = create_comment(text_html) t = time.time() - 604800 - notified_users = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_HOLE_CREATION'], User.last_active > t, User.id != v.id)] + excluded_ids = (v.id, 556, 868, 6289, 21238) + notified_users = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_HOLE_CREATION'], User.last_active > t, User.id.notin_(excluded_ids))] for uid in notified_users: add_notif(cid, uid, text, check_existing=False)