Clean up more things to do with letter validation

Missed these in https://github.com/alphagov/notifications-admin/pull/3201
This commit is contained in:
Chris Hill-Scott
2019-11-27 16:25:25 +00:00
parent 41113081f3
commit 37d844ba12
2 changed files with 1 additions and 15 deletions

View File

@@ -94,14 +94,6 @@ def get_page_count_for_letter(template, values=None):
return page_count
def validate_letter(pdf_file):
return requests.post(
'{}/precompiled/validate?include_preview=true'.format(current_app.config['TEMPLATE_PREVIEW_API_HOST']),
data=pdf_file,
headers={'Authorization': 'Token {}'.format(current_app.config['TEMPLATE_PREVIEW_API_KEY'])}
)
def sanitise_letter(pdf_file):
return requests.post(
'{}/precompiled/sanitise'.format(current_app.config['TEMPLATE_PREVIEW_API_HOST']),