From 5d64f30ae6d790111c1a10d3ccc25809d96336b0 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 16 May 2025 13:36:50 +0000 Subject: [PATCH] Update notify.py to use dbsession.commit --- remarkbox/scripts/send_node_digest_notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remarkbox/scripts/send_node_digest_notifications.py b/remarkbox/scripts/send_node_digest_notifications.py index 4a6fa1b..eee9a94 100644 --- a/remarkbox/scripts/send_node_digest_notifications.py +++ b/remarkbox/scripts/send_node_digest_notifications.py @@ -1,8 +1,7 @@ from pyramid.paster import bootstrap, setup_logging - from ..lib.notify import deliver_scheduled_notifications - from . import base_parser +import transaction def get_arg_parser(): @@ -17,3 +16,4 @@ def main(): with bootstrap(args.config) as env: deliver_scheduled_notifications(env["request"]) + transaction.commit()