diff options
-rw-r--r-- | wqflask/wqflask/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 7d3caea4..55efd7e4 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -106,10 +106,10 @@ def tmp_page(img_path): img_base64 = bytesarray ) -@app.route("/dalliance/<file_path>") -def bd_files(file_path): +@app.route("/dalliance/<path:filename>") +def bd_files(filename): bd_path = app.config['BIODALLIANCE_PATH'] - return send_from_directory(bd_path, file_path) + return send_from_directory(bd_path, filename) #@app.route("/data_sharing") |