From 42ad01e4939a59da275d557a9c1543d24b6026f3 Mon Sep 17 00:00:00 2001 From: piair Date: Fri, 30 Sep 2022 15:17:29 +0200 Subject: [PATCH] ofc --- modules/MySQL.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/MySQL.py b/modules/MySQL.py index ce17b5c..34482b6 100644 --- a/modules/MySQL.py +++ b/modules/MySQL.py @@ -6,21 +6,21 @@ def add_row(compte, points, mycursor, mydb): val = (compte, points) mycursor.execute(sql, val) mydb.commit() - printf(mycursor.rowcount, "record created.") + #printf(mycursor.rowcount, "record created.") def update_row(compte, points, mycursor, mydb): sql = f"UPDATE daily SET points = {points} WHERE compte = '{compte}' AND date = current_date() ;" mycursor.execute(sql) mydb.commit() - printf(mycursor.rowcount, "record(s) updated") + #printf(mycursor.rowcount, "record(s) updated") def update_last(compte, points, mycursor, mydb): sql = f"UPDATE comptes SET last_pts = {points} WHERE compte = '{compte}';" mycursor.execute(sql) mydb.commit() - printf(mycursor.rowcount, "record(s) updated") + #printf(mycursor.rowcount, "record(s) updated") def get_row(compte, points, mycursor, same_points = True): #return if there is a line with the same ammount of point or with the same name as well as the same day