and functions can't be empty

This commit is contained in:
piair 2022-10-04 22:11:25 +02:00
parent dff9af6125
commit 7789c89d64
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ def add_to_database(compte, points, sql_host,sql_usr,sql_pwd,sql_database ):
if get_row(compte, points,mycursor, True): #check if the row exist with the same ammount of points and do nothind if it does if get_row(compte, points,mycursor, True): #check if the row exist with the same ammount of points and do nothind if it does
#printf("les points sont deja bon") #printf("les points sont deja bon")
#return(0) #return(0)
pass
elif get_row(compte, points,mycursor, False) : #check if the row exist, but without the same ammount of points and update the point account then elif get_row(compte, points,mycursor, False) : #check if the row exist, but without the same ammount of points and update the point account then
update_row(compte, points,mycursor,mydb) update_row(compte, points,mycursor,mydb)
#printf("row updated") #printf("row updated")