From 43e970a1aa2df9bc3e089a844cbddf90c8910783 Mon Sep 17 00:00:00 2001 From: piair Date: Fri, 30 Sep 2022 14:59:54 +0200 Subject: [PATCH] better ? --- V4.py | 2 +- modules/MySQL.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,