From 732bfffb9383626b3c1fd601103f7fff4f0ea095 Mon Sep 17 00:00:00 2001 From: David McDonald Date: Mon, 16 May 2022 11:26:05 +0100 Subject: [PATCH] Remove duplicative call to `get_page_count_for_letter` For some reason we were calling it twice. We can just reuse the value already calculated --- app/main/views/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/views/templates.py b/app/main/views/templates.py index 79ef96cdb..f3939a481 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -77,7 +77,7 @@ def view_template(service_id, template_id): filetype='png', ), show_recipient=True, - page_count=get_page_count_for_letter(template), + page_count=page_count, ), template_postage=template["postage"], user_has_template_permission=user_has_template_permission,