diff options
author | Munyoki Kilyungi | 2022-09-05 10:26:28 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-09-08 14:26:19 +0300 |
commit | eef56387e8de5730b6eb2c7d9d61508d83119631 (patch) | |
tree | 8d32596658ed94f859b35c6f65376d968e9dbe30 /wqflask/base | |
parent | 8aef689bb1ab735ad4605af8b8b282672f92d2cf (diff) | |
download | genenetwork2-eef56387e8de5730b6eb2c7d9d61508d83119631.tar.gz |
Delete dead imports
* wqflask/base/data_set.py: Remove un-used imports.
* wqflask/base/trait.py: Ditto.
wqflask/tests/wqflask/show_trait/test_show_trait.py: Ditto.
* wqflask/wqflask/show_trait/show_trait.py: Ditto.
* wqflask/wqflask/views: Ditto.
Diffstat (limited to 'wqflask/base')
-rw-r--r-- | wqflask/base/data_set.py | 10 | ||||
-rw-r--r-- | wqflask/base/trait.py | 3 |
2 files changed, 2 insertions, 11 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index ade38131..41c94078 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -21,8 +21,7 @@ from dataclasses import dataclass from dataclasses import field from dataclasses import InitVar from typing import Optional, Dict, List -from utility.tools import USE_GN_SERVER, USE_REDIS, flat_files, flat_file_exists, GN2_BASE_URL -from pprint import pformat as pf +from utility.tools import USE_REDIS, flat_file_exists, GN2_BASE_URL from utility.db_tools import escape from utility.db_tools import mescape from utility.db_tools import create_in_clause @@ -34,27 +33,22 @@ from utility import webqtlUtil from db import webqtlDatabaseFunction from base import species from base import webqtlConfig -from flask import Flask, g from base.webqtlConfig import TMPDIR from urllib.parse import urlparse from utility.tools import SQL_URI from wqflask.database import database_connection import os import math -import string import collections import codecs import json import requests -import gzip import pickle as pickle -import itertools import hashlib -import datetime - from redis import Redis + r = Redis() # Used by create_database to instantiate objects diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 26aa687a..21575230 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -5,13 +5,10 @@ from wqflask import app from base import webqtlConfig from base.webqtlCaseData import webqtlCaseData from base.data_set import create_dataset -from utility import hmac from utility.authentication_tools import check_resource_availability from utility.tools import GN2_BASE_URL, GN_PROXY_URL from utility.redis_tools import get_redis_conn, get_resource_id -from utility.db_tools import escape - from flask import g, request, url_for from wqflask.database import database_connection |