forked from rDrama/rDrama
1
0
Fork 0

fix linkifying ping group in admin notif

master
Aevann 2023-10-12 21:57:35 +03:00
parent 80335a983e
commit 04b231c7bf
1 changed files with 2 additions and 0 deletions

View File

@ -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:")