better ?
This commit is contained in:
parent
994af56880
commit
43e970a1aa
2
V4.py
2
V4.py
@ -886,7 +886,7 @@ def LogPoint(account="unknown"): # log des points sur discord
|
|||||||
webhookSuccess.send(f"{account} actuellement à {str(points)} points")
|
webhookSuccess.send(f"{account} actuellement à {str(points)} points")
|
||||||
|
|
||||||
if sql_enabled :
|
if sql_enabled :
|
||||||
add_to_database(account, points)
|
add_to_database(account, points, sql_host, sql_usr, sql_pwd, sql_database)
|
||||||
|
|
||||||
|
|
||||||
def Fidelite():
|
def Fidelite():
|
||||||
|
@ -32,7 +32,7 @@ def get_row(compte, points, mycursor, same_points = True): #return if there is a
|
|||||||
return(len(myresult) == 1)
|
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(
|
mydb = mysql.connector.connect(
|
||||||
host=sql_host,
|
host=sql_host,
|
||||||
user=sql_usr,
|
user=sql_usr,
|
||||||
|
Loading…
Reference in New Issue
Block a user