diff --git a/app/main/views/jobs.py b/app/main/views/jobs.py index 17e75f706..c6de79710 100644 --- a/app/main/views/jobs.py +++ b/app/main/views/jobs.py @@ -52,7 +52,7 @@ def view_job(service_id, job_id): uploaded_file_name=job['original_file_name'], template=Template( template, - prefix=service['name'] if template['template_type'] == 'sms' else '' + prefix=service['name'] ), service_id=service_id, service=service, diff --git a/app/main/views/send.py b/app/main/views/send.py index 55ee719d4..9f252292d 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -232,7 +232,7 @@ def check_messages(service_id, upload_id): template = Template( template, - prefix=service['name'] if template['template_type'] == 'sms' else '' + prefix=service['name'] ) recipients = RecipientCSV( diff --git a/requirements.txt b/requirements.txt index c0d9bbd45..b1c315f8d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,4 +14,4 @@ Pygments==2.0.2 git+https://github.com/alphagov/notifications-python-client.git@0.3.1#egg=notifications-python-client==0.3.1 -git+https://github.com/alphagov/notifications-utils.git@3.0.0#egg=notifications-utils==3.0.0 +git+https://github.com/alphagov/notifications-utils.git@3.1.1#egg=notifications-utils==3.1.1