diff options
-rw-r--r-- | gn3/api/datasets.py | 2 | ||||
-rw-r--r-- | gn3/api/traits.py | 2 | ||||
-rw-r--r-- | gn3/experimental_db.py | 11 |
3 files changed, 2 insertions, 13 deletions
diff --git a/gn3/api/datasets.py b/gn3/api/datasets.py index 7f08de5..3d6518e 100644 --- a/gn3/api/datasets.py +++ b/gn3/api/datasets.py @@ -4,7 +4,7 @@ from flask import jsonify from gn3.computations.datasets import create_dataset from gn3.computations.datasets import get_traits_data -from gn3.experimental_db import database_connector +from gn3.db_utils import database_connector dataset = Blueprint("dataset", __name__) diff --git a/gn3/api/traits.py b/gn3/api/traits.py index 0ac437d..002a281 100644 --- a/gn3/api/traits.py +++ b/gn3/api/traits.py @@ -7,7 +7,7 @@ from flask import request from gn3.computations.traits import fetch_trait from gn3.computations.traits import get_trait_info_data -from gn3.experimental_db import database_connector +from gn3.db_utils import database_connector trait = Blueprint("trait", __name__) diff --git a/gn3/experimental_db.py b/gn3/experimental_db.py deleted file mode 100644 index a07aeba..0000000 --- a/gn3/experimental_db.py +++ /dev/null @@ -1,11 +0,0 @@ -"""this function contains experimental db staff""" -from typing import Tuple -import MySQLdb as mdb # type: ignore - - -def database_connector()->Tuple: - """function to create db connector""" - conn = mdb.connect("localhost", "kabui", "1234", "db_webqtl") - cursor = conn.cursor() - - return (conn, cursor) |