From dff9af61251c78b53e8de44dd7a2b963c81b7585 Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 4 Oct 2022 22:09:51 +0200 Subject: [PATCH] return stop function piair ... --- modules/db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/db.py b/modules/db.py index 34482b6..a36bae9 100644 --- a/modules/db.py +++ b/modules/db.py @@ -43,14 +43,14 @@ 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 #printf("les points sont deja bon") - return(0) + #return(0) 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) #printf("row updated") - return(1) + #return(1) else : # if the row don't exist, create it with the good ammount of points add_row(compte, points,mycursor,mydb) - return(2) #printf("row added") + #return(2) #printf("row added") if int(points) > 10 : update_last(compte, points, mycursor, mydb)