Update send_node_digest_notifications.py

This commit is contained in:
Groupr 2025-07-21 19:56:32 +00:00
parent 2e6d88f191
commit 079eb09ad4

View file

@ -34,7 +34,8 @@ def main():
# Let deliver_scheduled_notifications manage its own transaction
deliver_scheduled_notifications(request)
dbsession.flush() # Ensure changes are flushed before commit
transaction.commit()
# Check after and mark as sent with fresh session
try:
with transaction.manager: