From 8ea2d3e4fcb9131dbd464e3335cae403591d3acd Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 21 Jun 2016 10:39:39 +0000 Subject: GN_SERVER: support menu without USE_GN_SERVER --- wqflask/wqflask/views.py | 7 +++++-- 1 file 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/") -- cgit v1.2.3