From 04b231c7bf4f527ae1b97198e6bdf0c9cbbc9eb5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 12 Oct 2023 21:57:35 +0300 Subject: [PATCH] fix linkifying ping group in admin notif --- files/routes/groups.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/groups.py b/files/routes/groups.py index 6455370e3..c6c6fab7c 100644 --- a/files/routes/groups.py +++ b/files/routes/groups.py @@ -52,6 +52,8 @@ def create_group(v): ) g.db.add(group_membership) + g.db.flush() #Necessary, to make linkfying the ping group in the notification work + admins = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_HOLE_CREATION'], User.id != v.id)] for admin in admins: send_repeatable_notification(admin, f":!marseyparty: !{group} has been created by @{v.username} :marseyparty:")