upgrade to flask2
This commit is contained in:
@@ -13,7 +13,7 @@ from revprox import ReverseProxied
|
|||||||
from utils import *
|
from utils import *
|
||||||
|
|
||||||
|
|
||||||
__FLEES_VERSION__ = "20191031.0"
|
__FLEES_VERSION__ = "20211018.0"
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config.from_object(__name__)
|
app.config.from_object(__name__)
|
||||||
config_values = read_config(app)
|
config_values = read_config(app)
|
||||||
@@ -575,7 +575,7 @@ def download_direct(name,token,filename):
|
|||||||
"filename": file_path,
|
"filename": file_path,
|
||||||
"operation": "direct_download"
|
"operation": "direct_download"
|
||||||
})
|
})
|
||||||
return send_from_directory(directory=share['path'], filename=filename)
|
return send_from_directory(directory=share['path'], path=filename)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/download/gui/<name>/<path:filename>', methods=['GET'])
|
@app.route('/download/gui/<name>/<path:filename>', methods=['GET'])
|
||||||
@@ -843,7 +843,7 @@ def download_file(name, filename, token = None):
|
|||||||
"filename": file_path,
|
"filename": file_path,
|
||||||
"operation": "download"
|
"operation": "download"
|
||||||
})
|
})
|
||||||
return send_from_directory(directory=share['path'], filename=filename)
|
return send_from_directory(directory=share['path'], path=filename)
|
||||||
|
|
||||||
|
|
||||||
def file_versionize(full_path):
|
def file_versionize(full_path):
|
||||||
|
|||||||
@@ -354,7 +354,7 @@ def run_loop(opts):
|
|||||||
def upload_file(file, opts):
|
def upload_file(file, opts):
|
||||||
print("Upload "+file)
|
print("Upload "+file)
|
||||||
p = Popen(
|
p = Popen(
|
||||||
"curl -s %s%s/%s/%s | python -u - -s %d '%s'"%(
|
"curl -s %s%s/%s/%s | python3 -u - -s %d '%s'"%(
|
||||||
opts.rooturl,
|
opts.rooturl,
|
||||||
"script/upload_split",
|
"script/upload_split",
|
||||||
opts.share,
|
opts.share,
|
||||||
|
|||||||
Reference in New Issue
Block a user