aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-06-20 08:03:50 +0300
committerFrederick Muriuki Muriithi2023-06-20 13:36:50 +0300
commit24450cd319ad3bc43f119933cd9d6cf165bc4682 (patch)
tree42ef3b98633324932dbd0afbe57bfb7d4211599d /wqflask/base
parent30d2d8c3bea51a705752aaae519ff7b5ab70ba26 (diff)
downloadgenenetwork2-24450cd319ad3bc43f119933cd9d6cf165bc4682.tar.gz
Remove use of Flask Blueprints for the modules recently changed.
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/trait.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 3a52e889..eb043769 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -1,8 +1,9 @@
import requests
import simplejson as json
-from flask import g, request, url_for, Blueprint, current_app as app
+from flask import g, request, url_for
+from wqflask import app
import utility.hmac as hmac
from base import webqtlConfig
from base.webqtlCaseData import webqtlCaseData
@@ -15,7 +16,6 @@ from wqflask.database import database_connection
Redis = get_redis_conn()
-trait_bp = Blueprint("trait", __name__)
def create_trait(**kw):
assert bool(kw.get('dataset')) != bool(
@@ -256,7 +256,7 @@ def retrieve_sample_data(trait, dataset, samplelist=None):
return trait
-@trait_bp.route("/trait/get_sample_data")
+@app.route("/trait/get_sample_data")
def get_sample_data():
params = request.args
trait = params['trait']