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

View file

@ -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'