manage_sql.py: sql_checkconn() rename (last n missing) and description correction

This commit is contained in:
Alarig Le Lay 2020-11-21 13:00:44 +01:00
parent cd8db520bc
commit 64a935b301
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ class HandleSql:
"""Class to handle sql connection.""" """Class to handle sql connection."""
@staticmethod @staticmethod
def sql_checkcon(): def sql_checkconn():
"""Init sql connection.""" """Check MySQL connection."""
try: try:
global conn global conn
conn = pymysql.connect(host=SQL_HOST, db=SQL_DB, user=SQL_USER, passwd=SQL_PWD) conn = pymysql.connect(host=SQL_HOST, db=SQL_DB, user=SQL_USER, passwd=SQL_PWD)