mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -04:00
Merge branch 'main' into 2401-add-in-flask-socketio-for-api-calls-rather-than-using-ajax
This commit is contained in:
@@ -355,7 +355,7 @@ def _get_job_counts(job):
|
||||
Markup(
|
||||
f"""total<span class="usa-sr-only">
|
||||
{"text message" if job_type == "sms" else job_type}s</span>"""
|
||||
),
|
||||
), # nosec
|
||||
"",
|
||||
job.notification_count,
|
||||
],
|
||||
@@ -363,7 +363,7 @@ def _get_job_counts(job):
|
||||
Markup(
|
||||
f"""pending<span class="usa-sr-only">
|
||||
{message_count_noun(job.notifications_sending, job_type)}</span>"""
|
||||
),
|
||||
), # nosec
|
||||
"pending",
|
||||
job.notifications_sending,
|
||||
],
|
||||
@@ -371,7 +371,7 @@ def _get_job_counts(job):
|
||||
Markup(
|
||||
f"""delivered<span class="usa-sr-only">
|
||||
{message_count_noun(job.notifications_delivered, job_type)}</span>"""
|
||||
),
|
||||
), # nosec
|
||||
"delivered",
|
||||
job.notifications_delivered,
|
||||
],
|
||||
@@ -379,7 +379,7 @@ def _get_job_counts(job):
|
||||
Markup(
|
||||
f"""failed<span class="usa-sr-only">
|
||||
{message_count_noun(job.notifications_failed, job_type)}</span>"""
|
||||
),
|
||||
), # nosec
|
||||
"failed",
|
||||
job.notifications_failed,
|
||||
],
|
||||
@@ -469,4 +469,4 @@ def get_preview_of_content(notification):
|
||||
notification["personalisation"],
|
||||
redact_missing_personalisation=True,
|
||||
).subject
|
||||
)
|
||||
) # nosec
|
||||
|
||||
Reference in New Issue
Block a user