kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Heroku tweaks (backup download) (#356)
* use absolute path, just incase the data-dir is set relativepull/359/head
rodzic
59d31bf76f
commit
febb2bbf0d
|
@ -804,7 +804,8 @@ def changedetection_app(config=None, datastore_o=None):
|
|||
compress_type=zipfile.ZIP_DEFLATED,
|
||||
compresslevel=8)
|
||||
|
||||
return send_from_directory(datastore_o.datastore_path, backupname, as_attachment=True)
|
||||
# Send_from_directory needs to be the full absolute path
|
||||
return send_from_directory(os.path.abspath(datastore_o.datastore_path), backupname, as_attachment=True)
|
||||
|
||||
@app.route("/static/<string:group>/<string:filename>", methods=['GET'])
|
||||
def static_content(group, filename):
|
||||
|
|
Ładowanie…
Reference in New Issue