aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-04-14 11:28:57 +0300
committerFrederick Muriuki Muriithi2022-04-14 11:28:57 +0300
commit6ec4e94f34374f904beb724cb5a959f4882ea7ab (patch)
treeaafe42c92b1812a345e50f1387b7b886ec195bf0
parent58101923291172e9999ffc607d5f3d1b9507ccfb (diff)
downloadgenenetwork2-6ec4e94f34374f904beb724cb5a959f4882ea7ab.tar.gz
Use `MySQLdb.connect` rather than `MySQLdb.Connect`
-rw-r--r--wqflask/wqflask/database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/database.py b/wqflask/wqflask/database.py
index c89216cf..afbb7923 100644
--- a/wqflask/wqflask/database.py
+++ b/wqflask/wqflask/database.py
@@ -39,4 +39,4 @@ def parse_db_url(sql_uri: str) -> Tuple:
def database_connection():
"""Returns a database connection"""
host, user, passwd, db_name = parse_db_url(sql_uri())
- return MySQLdb.Connect(db=db_name, user=user, passwd=passwd, host=host)
+ return MySQLdb.connect(db=db_name, user=user, passwd=passwd, host=host)