Update ereuse_devicehub/resources/documents/documents.py
Co-authored-by: Jordi Nadeu <j.nadeu@ereuse.org>
This commit is contained in:
parent
b13d8e5b97
commit
5af22b6ec6
|
@ -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'
|
||||||
|
|
Reference in New Issue