aboutsummaryrefslogtreecommitdiff
path: root/gn3/db_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/db_utils.py')
-rw-r--r--gn3/db_utils.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gn3/db_utils.py b/gn3/db_utils.py
index 3703cbb..3b72d28 100644
--- a/gn3/db_utils.py
+++ b/gn3/db_utils.py
@@ -17,7 +17,4 @@ def parse_db_url() -> Tuple:
def database_connector() -> mdb.Connection:
"""function to create db connector"""
host, user, passwd, db_name = parse_db_url()
- conn = mdb.connect(host, user, passwd, db_name)
- cursor = conn.cursor()
-
- return conn
+ return mdb.connect(host, user, passwd, db_name)