aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2022-01-26 16:44:59 +0300
committerBonfaceKilz2022-02-09 08:49:56 +0300
commit24f5ac52ab481f2d9da2c60f50e83dab1afa5c85 (patch)
tree181b3356c785caff43b55ff305bcf6d147e8da97
parent787e8f6c742155a95a2f27f0dde9659e000c93f2 (diff)
downloadgenenetwork2-24f5ac52ab481f2d9da2c60f50e83dab1afa5c85.tar.gz
endpoint to download network files
-rw-r--r--wqflask/wqflask/views.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index ec321401..0be881cf 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -364,6 +364,15 @@ def ctl_results():
ctl_results = run_ctl(request.form)
return render_template("gn3_ctl_results.html",**ctl_results)
+
+@app.route("/ctl_network_files/<file_name>/<file_type>")
+def fetch_network_files(file_name,file_type):
+ file_path = f"{file_name}.{file_type}"
+
+ file_path = os.path.join("/tmp/",file_path)
+
+ return send_file(file_path)
+
@app.route("/intro")
def intro():
doc = Docs("intro", request.args)