diff options
author | Frederick Muriuki Muriithi | 2022-04-14 11:28:57 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-14 11:28:57 +0300 |
commit | 6ec4e94f34374f904beb724cb5a959f4882ea7ab (patch) | |
tree | aafe42c92b1812a345e50f1387b7b886ec195bf0 | |
parent | 58101923291172e9999ffc607d5f3d1b9507ccfb (diff) | |
download | genenetwork2-6ec4e94f34374f904beb724cb5a959f4882ea7ab.tar.gz |
Use `MySQLdb.connect` rather than `MySQLdb.Connect`
-rw-r--r-- | wqflask/wqflask/database.py | 2 |
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) |