mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-29 02:55:52 +00:00
Fixed log an backup download from UI after flask upgrade.
This commit is contained in:
parent
551f57bc0e
commit
8c944c4cf2
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ def catch_all(path):
|
|||
@check_login
|
||||
@ui_bp.route('/bazarr.log')
|
||||
def download_log():
|
||||
return send_file(os.path.join(args.config_dir, 'log', 'bazarr.log'), cache_timeout=0, as_attachment=True)
|
||||
return send_file(os.path.join(args.config_dir, 'log', 'bazarr.log'), max_age=0, as_attachment=True)
|
||||
|
||||
|
||||
@check_login
|
||||
|
@ -134,7 +134,7 @@ def movies_images(url):
|
|||
@check_login
|
||||
@ui_bp.route('/system/backup/download/<path:filename>', methods=['GET'])
|
||||
def backup_download(filename):
|
||||
return send_file(os.path.join(settings.backup.folder, filename), cache_timeout=0, as_attachment=True)
|
||||
return send_file(os.path.join(settings.backup.folder, filename), max_age=0, as_attachment=True)
|
||||
|
||||
|
||||
@ui_bp.route('/api/swaggerui/static/<path:filename>', methods=['GET'])
|
||||
|
|
Loading…
Reference in a new issue