mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 13:28:25 -04:00
fix flake8
This commit is contained in:
@@ -857,6 +857,7 @@ def send_notification(service_id, template_id):
|
||||
check_message_output = check_messages(service_id, template_id, upload_id, 2)
|
||||
if "You cannot send to" in check_message_output:
|
||||
return check_messages(service_id, template_id, upload_id, 2)
|
||||
|
||||
job_api_client.create_job(
|
||||
upload_id,
|
||||
service_id,
|
||||
|
||||
@@ -10,7 +10,12 @@ Error
|
||||
{% endblock %}
|
||||
|
||||
{% block backLink %}
|
||||
{{ usaBackLink({ "href": back_link }) }}
|
||||
<!--hide back link for one-off sends because the user never created a csv file-->
|
||||
{% if recipients.__len__() == 1 and not recipients.allowed_to_send_to and not recipients.missing_column_headers %}
|
||||
<!--do nothing-->
|
||||
{% else %}
|
||||
{{ usaBackLink({ "href": back_link }) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
@@ -130,7 +135,10 @@ Error
|
||||
{% endcall %}
|
||||
</div>
|
||||
|
||||
|
||||
<!--hide the upload button and back to top link for one off sends-->
|
||||
{% if recipients.__len__() == 1 and not recipients.allowed_to_send_to and not recipients.missing_column_headers %}
|
||||
<!-- do nothing -->
|
||||
{% else %}
|
||||
<div class="js-stick-at-top-when-scrolling">
|
||||
<div class="form-group">
|
||||
{% if not request.args.from_test %}
|
||||
@@ -144,6 +152,7 @@ Error
|
||||
</div>
|
||||
<a href="#content" class="usa-link back-to-top-link">Back to top</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if not request.args.from_test %}
|
||||
|
||||
@@ -210,4 +219,4 @@ recipients.column_headers %}
|
||||
<h2 class="font-body-lg">Preview of {{ template.name }}</h2>
|
||||
{{ template|string }}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user