Remove expand_emails argument from get_template

It isn’t used for anything now.
This commit is contained in:
Chris Hill-Scott
2019-09-02 16:15:24 +01:00
parent 17b8c0194b
commit 40e020d40d
4 changed files with 0 additions and 11 deletions

View File

@@ -79,7 +79,6 @@ def view_notification(service_id, notification_id):
notification_id=notification_id,
filetype='png',
),
expand_emails=True,
page_count=page_count,
show_recipient=True,
redact_missing_personalisation=True,

View File

@@ -133,7 +133,6 @@ def send_messages(service_id, template_id):
db_template,
current_service,
show_recipient=True,
expand_emails=True,
letter_preview_url=url_for(
'.view_letter_template_preview',
service_id=service_id,
@@ -363,7 +362,6 @@ def send_test_step(service_id, template_id, step_index):
db_template,
current_service,
show_recipient=True,
expand_emails=True,
letter_preview_url=url_for(
'.send_test_preview',
service_id=service_id,
@@ -528,7 +526,6 @@ def _check_messages(service_id, template_id, upload_id, preview_row, letters_as_
db_template,
current_service,
show_recipient=True,
expand_emails=True,
letter_preview_url=url_for(
'.check_messages_preview',
service_id=service_id,
@@ -857,7 +854,6 @@ def _check_notification(service_id, template_id, exception=None):
db_template,
current_service,
show_recipient=True,
expand_emails=True,
email_reply_to=email_reply_to,
sms_sender=sms_sender,
letter_preview_url=url_for(

View File

@@ -63,7 +63,6 @@ def view_template(service_id, template_id):
template=get_template(
template,
current_service,
expand_emails=True,
letter_preview_url=url_for(
'.view_letter_template_preview',
service_id=service_id,
@@ -251,7 +250,6 @@ def _view_template_version(service_id, template_id, version, letters_as_pdf=Fals
return dict(template=get_template(
current_service.get_template(template_id, version=version),
current_service,
expand_emails=True,
letter_preview_url=url_for(
'.view_template_version_preview',
service_id=service_id,
@@ -674,7 +672,6 @@ def delete_service_template(service_id, template_id):
template=get_template(
template,
current_service,
expand_emails=True,
letter_preview_url=url_for(
'.view_letter_template_preview',
service_id=service_id,
@@ -697,7 +694,6 @@ def confirm_redact_template(service_id, template_id):
template=get_template(
template,
current_service,
expand_emails=True,
letter_preview_url=url_for(
'.view_letter_template_preview',
service_id=service_id,
@@ -738,7 +734,6 @@ def view_template_versions(service_id, template_id):
get_template(
template,
current_service,
expand_emails=True,
letter_preview_url=url_for(
'.view_template_version_preview',
service_id=service_id,

View File

@@ -343,7 +343,6 @@ def get_template(
template,
service,
show_recipient=False,
expand_emails=False,
letter_preview_url=None,
page_count=1,
redact_missing_personalisation=False,