aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-04-12 17:12:40 +0300
committerAlexander Kabui2021-04-12 17:12:40 +0300
commit941ac598f7c15161c4e8da2f1f279bb6b6f73d80 (patch)
treeeaf805175f23969ebc2084219db3ce314741dfa8
parent62a5058a975a92f673797e8f5285ef5f993b3840 (diff)
downloadgenenetwork3-941ac598f7c15161c4e8da2f1f279bb6b6f73d80.tar.gz
replace experimental db
-rw-r--r--gn3/api/datasets.py2
-rw-r--r--gn3/api/traits.py2
-rw-r--r--gn3/experimental_db.py11
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)