Merge pull request #12 from augustin64/patch-3

This commit is contained in:
piair338 2023-02-13 21:03:55 +01:00 committed by GitHub
commit 442dbb08d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 29 deletions

View File

@ -33,6 +33,9 @@ def get_row(compte, points, mycursor, same_points = True): #return if there is a
def add_to_database(compte, points, sql_host,sql_usr,sql_pwd,sql_database, save_if_fail=True): def add_to_database(compte, points, sql_host,sql_usr,sql_pwd,sql_database, save_if_fail=True):
if points is None:
pass
else:
try: try:
mydb = mysql.connector.connect( mydb = mysql.connector.connect(
host=sql_host, host=sql_host,