From e1cca540c45b33ce6edbe743814c786158934e76 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 13 Apr 2021 19:02:16 +0200 Subject: [PATCH] change verification link for erasure certificate doc --- ereuse_devicehub/resources/documents/documents.py | 5 +---- .../resources/documents/templates/documents/erasure.html | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index cc47fd30..82008c69 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -102,13 +102,10 @@ class DocumentView(DeviceView): url_pdf = boltons.urlutils.URL(flask.request.url) url_pdf.query_params['format'] = 'PDF' - url_web = boltons.urlutils.URL(flask.request.url) - url_web.query_params['format'] = 'HTML' params = { 'title': 'Erasure Certificate', 'erasures': tuple(erasures()), - 'url_pdf': url_pdf.to_text(), - 'url_web': url_web.to_text() + 'url_pdf': url_pdf.to_text() } return flask.render_template('documents/erasure.html', **params) diff --git a/ereuse_devicehub/resources/documents/templates/documents/erasure.html b/ereuse_devicehub/resources/documents/templates/documents/erasure.html index 0a0767d5..5a16390c 100644 --- a/ereuse_devicehub/resources/documents/templates/documents/erasure.html +++ b/ereuse_devicehub/resources/documents/templates/documents/erasure.html @@ -87,6 +87,6 @@ Click here to download the PDF. {% endblock %}