mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-12 09:58:50 -04:00
cleanup
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user