This commit is contained in:
Kenneth Kehl
2024-09-03 14:01:17 -07:00
parent 35dcfccd5f
commit 1308894191
2 changed files with 4 additions and 5 deletions

View File

@@ -10,7 +10,6 @@ from flask import (
abort,
current_app,
flash,
redirect,
render_template,
request,
session,
@@ -818,8 +817,10 @@ def load_test():
}
_send_notification(service["id"], example_template["id"])
# For now, just hang out on the platform admin page
return redirect(request.referrer)
# For now, just redirect to the splash page so we know it's done
return render_template(
"views/platform-admin/splash-page.html",
)
def _find_example_template(service):

View File

@@ -943,9 +943,7 @@ def preview_notification(service_id, template_id):
)
@user_has_permissions("send_messages", restrict_admin_usage=True)
def send_notification(service_id, template_id):
print("GOING TO GET RECIPIENT") # noqa
recipient = get_recipient()
print(f"RECIPIENT IS {recipient}, redirecting if None") # noqa
if not recipient:
return redirect(