aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorPjotr Prins2016-06-21 10:39:39 +0000
committerPjotr Prins2016-06-21 10:39:39 +0000
commit8ea2d3e4fcb9131dbd464e3335cae403591d3acd (patch)
treee53a8db81e2b26ec57de7c03c3ef5263c0121f4b /wqflask
parent1602382270d809d923e1ecc83014084d629fdbfe (diff)
downloadgenenetwork2-8ea2d3e4fcb9131dbd464e3335cae403591d3acd.tar.gz
GN_SERVER: support menu without USE_GN_SERVER
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py7
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>")