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

View file

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