diff options
author | christian | 2016-08-04 16:54:26 +0200 |
---|---|---|
committer | christian | 2016-08-04 16:54:26 +0200 |
commit | b8e9edd94fcd1f2630915b888993ee39e8f4e53b (patch) | |
tree | 18a2e722fe87429a288506258da2c07c173e386b | |
parent | 5ea6eb6ad7c529dcf8f2a9b24f6186f8571341a1 (diff) | |
download | genenetwork2-b8e9edd94fcd1f2630915b888993ee39e8f4e53b.tar.gz |
Fix so BD subfolders are served
-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") |