Update send_node_digest_notifications.py
This commit is contained in:
parent
2e6d88f191
commit
079eb09ad4
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue