diff options
author | Frederick Muriuki Muriithi | 2023-06-20 08:03:50 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-06-20 13:36:50 +0300 |
commit | 24450cd319ad3bc43f119933cd9d6cf165bc4682 (patch) | |
tree | 42ef3b98633324932dbd0afbe57bfb7d4211599d /wqflask/base/trait.py | |
parent | 30d2d8c3bea51a705752aaae519ff7b5ab70ba26 (diff) | |
download | genenetwork2-24450cd319ad3bc43f119933cd9d6cf165bc4682.tar.gz |
Remove use of Flask Blueprints for the modules recently changed.
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r-- | wqflask/base/trait.py | 6 |
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'] |