diff options
author | Pjotr Prins | 2016-06-21 10:39:39 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-21 10:39:39 +0000 |
commit | 8ea2d3e4fcb9131dbd464e3335cae403591d3acd (patch) | |
tree | e53a8db81e2b26ec57de7c03c3ef5263c0121f4b | |
parent | 1602382270d809d923e1ecc83014084d629fdbfe (diff) | |
download | genenetwork2-8ea2d3e4fcb9131dbd464e3335cae403591d3acd.tar.gz |
GN_SERVER: support menu without USE_GN_SERVER
-rw-r--r-- | wqflask/wqflask/views.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index f486a8b5..9a866092 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -48,7 +48,7 @@ from wqflask.wgcna import wgcna_analysis from wqflask.ctl import ctl_analysis from utility import temp_data -from utility.tools import TEMPDIR,USE_REDIS +from utility.tools import TEMPDIR,USE_REDIS,USE_GN_SERVER from base import webqtlFormData from base.webqtlConfig import GENERATED_IMAGE_DIR @@ -74,7 +74,10 @@ def connect_db(): @app.route("/") def index_page(): logger.info("Sending index_page") - return render_template("index_page.html") + if USE_GN_SERVER: + return render_template("index_page.html") + else: + return render_template("index_page_orig.html") @app.route("/tmp/<img_path>") |