diff --git a/V4.py b/V4.py index 982fba9..6d29ce5 100755 --- a/V4.py +++ b/V4.py @@ -886,7 +886,7 @@ def LogPoint(account="unknown"): # log des points sur discord webhookSuccess.send(f"{account} actuellement à {str(points)} points") if sql_enabled : - add_to_database(account, points) + add_to_database(account, points, sql_host, sql_usr, sql_pwd, sql_database) def Fidelite(): diff --git a/modules/MySQL.py b/modules/MySQL.py index 1b4f829..ce17b5c 100644 --- a/modules/MySQL.py +++ b/modules/MySQL.py @@ -32,7 +32,7 @@ def get_row(compte, points, mycursor, same_points = True): #return if there is a return(len(myresult) == 1) -def add_to_database(compte, points): +def add_to_database(compte, points, sql_host,sql_usr,sql_pwd,sql_database ): mydb = mysql.connector.connect( host=sql_host, user=sql_usr,