Merge branch 'main' into 2401-add-in-flask-socketio-for-api-calls-rather-than-using-ajax

This commit is contained in:
Beverly Nguyen
2025-04-03 15:30:02 -07:00
83 changed files with 2029 additions and 1917 deletions

View File

@@ -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