Fix argument order bug with page count

This commit is contained in:
Chris Hill-Scott
2017-05-16 11:43:19 +01:00
parent 9820f0db49
commit d9f5884e3d
2 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ def get_page_count_for_letter(template, values=None):
if template['template_type'] != 'letter':
return None
page_count, _, _ = TemplatePreview.from_database_object(template, values, filetype='json')
page_count, _, _ = TemplatePreview.from_database_object(template, 'json', values)
page_count = json.loads(page_count.decode('utf-8'))['count']
return page_count