Update ereuse_devicehub/resources/documents/documents.py

Co-authored-by: Jordi Nadeu <j.nadeu@ereuse.org>
This commit is contained in:
cayop 2021-04-12 11:47:18 +02:00 committed by GitHub
parent b13d8e5b97
commit 5af22b6ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ class WbConfDocumentView(DeviceView):
} }
data['erase'] = False if wbtype == 'usodyrate' else True 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 = make_response(env)
output.headers['Content-Disposition'] = 'attachment; filename=Configuration.ini' output.headers['Content-Disposition'] = 'attachment; filename=Configuration.ini'
output.headers['Content-type'] = 'text/plain' output.headers['Content-type'] = 'text/plain'