Merge pull request #12 from augustin64/patch-3
This commit is contained in:
commit
442dbb08d9
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue