Update notify.py

This commit is contained in:
Groupr 2025-06-07 16:00:31 +00:00
parent c9c98950c3
commit cebf17caaa

View file

@ -166,7 +166,8 @@ def deliver_scheduled_notifications(request=None):
if datetime.today().weekday() == 0:
notification_dict = get_email_notifications(request.dbsession, "weekly")
send_digest_notifications(request, notification_dict, "weekly")
tm.commit()
def send_immediate_notifications(request, notifications):
deliver_email_notifications = request.app.get("deliver_email_notifications", True)