From 24450cd319ad3bc43f119933cd9d6cf165bc4682 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 20 Jun 2023 08:03:50 +0300 Subject: Remove use of Flask Blueprints for the modules recently changed. --- wqflask/base/trait.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wqflask/base/trait.py') 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'] -- cgit v1.2.3