mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Fix argument order bug with page count
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user