From 4fd3f1179705684722824de933db81218343b773 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 23 Jan 2024 14:52:27 +0200 Subject: [PATCH] exclude @healthy --- files/routes/groups.py | 2 +- files/routes/holes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/groups.py b/files/routes/groups.py index e0db2ad74..3f9dab114 100644 --- a/files/routes/groups.py +++ b/files/routes/groups.py @@ -58,7 +58,7 @@ def create_group(v): text_html = sanitize(text, blackjack="notification") cid = create_comment(text_html) t = time.time() - 604800 - excluded_ids = (v.id, 868, 6289, 21238) + 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) diff --git a/files/routes/holes.py b/files/routes/holes.py index c703554ca..abc42235d 100644 --- a/files/routes/holes.py +++ b/files/routes/holes.py @@ -393,7 +393,7 @@ def create_sub2(v): text_html = sanitize(text, blackjack="notification") cid = create_comment(text_html) t = time.time() - 604800 - excluded_ids = (v.id, 868, 6289, 21238) + 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)