diff options
author | BonfaceKilz | 2021-05-21 16:30:33 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-05-26 20:01:28 +0300 |
commit | e97408ad909030a2e8cbbfcb0311c90b7fc9b706 (patch) | |
tree | a11b140088be51513990e85bdf94e961ead9d35d /wqflask | |
parent | 3efc5eab756d82e998354e144fe61976dd8110f1 (diff) | |
download | genenetwork2-e97408ad909030a2e8cbbfcb0311c90b7fc9b706.tar.gz |
wqflask: views: Make imports top-level
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 87686d8f..4b305cf2 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -9,6 +9,7 @@ import csv import simplejson as json import xlsxwriter import io # Todo: Use cStringIO? +import MySQLdb from zipfile import ZipFile, ZIP_DEFLATED @@ -21,6 +22,12 @@ import base64 import array import sqlalchemy from wqflask import app + +from gn3.db.phenotypes import Phenotype +from gn3.db.phenotypes import PublishXRef +from gn3.db.phenotypes import Publication +from gn3.db.phenotypes import fetchone + from flask import current_app from flask import g from flask import Response @@ -417,11 +424,6 @@ def submit_trait_form(): @app.route("/trait/<name>/edit/<inbred_set_id>") def edit_trait(name, inbred_set_id): - from gn3.db.phenotypes import (Phenotype, - PublishXRef, - Publication, - fetchone) - import MySQLdb conn = MySQLdb.Connect(db=current_app.config.get("DB_NAME"), user=current_app.config.get("DB_USER"), passwd=current_app.config.get("DB_PASS"), |