From 6ec4e94f34374f904beb724cb5a959f4882ea7ab Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 14 Apr 2022 11:28:57 +0300 Subject: Use `MySQLdb.connect` rather than `MySQLdb.Connect` --- wqflask/wqflask/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') 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) -- cgit v1.2.3