From 5af22b6ec61fd1894200884347c5b840b0df1268 Mon Sep 17 00:00:00 2001 From: cayop <42643859+cayop@users.noreply.github.com> Date: Mon, 12 Apr 2021 11:47:18 +0200 Subject: [PATCH 1/2] Update ereuse_devicehub/resources/documents/documents.py Co-authored-by: Jordi Nadeu --- ereuse_devicehub/resources/documents/documents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index 1691f0ab..5fc51743 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -329,7 +329,7 @@ class WbConfDocumentView(DeviceView): } data['erase'] = False if wbtype == 'usodyrate' else True - env = flask.render_template('documents/wbConfiguration.ini', **data) + env = flask.render_template('documents/wbSettings.ini', **data) output = make_response(env) output.headers['Content-Disposition'] = 'attachment; filename=Configuration.ini' output.headers['Content-type'] = 'text/plain' From e40b297f3becdb8dcfbd0876dec22563515060b2 Mon Sep 17 00:00:00 2001 From: cayop <42643859+cayop@users.noreply.github.com> Date: Mon, 12 Apr 2021 11:47:26 +0200 Subject: [PATCH 2/2] Update ereuse_devicehub/resources/documents/documents.py Co-authored-by: Jordi Nadeu --- ereuse_devicehub/resources/documents/documents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index 5fc51743..b687dd82 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -331,7 +331,7 @@ class WbConfDocumentView(DeviceView): env = flask.render_template('documents/wbSettings.ini', **data) output = make_response(env) - output.headers['Content-Disposition'] = 'attachment; filename=Configuration.ini' + output.headers['Content-Disposition'] = 'attachment; filename=settings.ini' output.headers['Content-type'] = 'text/plain' return output