From 655159fbf3e3c1163d0fc9ae57f1bfafa0fa7511 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 24 Feb 2023 04:11:16 +0200 Subject: [PATCH] add push notifs for blackjack --- files/helpers/sanitize.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index da28e5f536..0404002963 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -228,7 +228,10 @@ def execute_blackjack(v, target, body, type): for id in notified_ids: n = Notification(comment_id=target.id, user_id=id) g.db.add(n) - g.db.flush() + + g.db.flush() + push_notif(notified_ids, 'Blackjack!', target.body, (target.id,bool(target.wall_user_id))) + extra_info = None if extra_info: