start load test work

This commit is contained in:
Kenneth Kehl
2024-08-30 09:50:01 -07:00
parent b20c8ec909
commit c36561ee4d
4 changed files with 51 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ from flask import (
abort,
current_app,
flash,
json,
redirect,
render_template,
request,
@@ -942,6 +943,10 @@ def preview_notification(service_id, template_id):
)
@user_has_permissions("send_messages", restrict_admin_usage=True)
def send_notification(service_id, template_id):
return _send_notification(service_id, template_id)
def _send_notification(service_id, template_id):
scheduled_for = session.pop("scheduled_for", "")
recipient = get_recipient()
if not recipient: