mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-08-10 07:16:37 +02:00
déja ca a fix le problème de lancement je pense
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import sqlite3
|
||||
|
||||
#Create a new row, for the account [compte] whith [points] points
|
||||
#SQLITE
|
||||
def add_row(compte, points, mycursor, mydb):
|
||||
sql = "INSERT INTO daily (compte, points, date) VALUES (?, ?, date())"
|
||||
val = (compte, points)
|
||||
@ -11,7 +10,6 @@ def add_row(compte, points, mycursor, mydb):
|
||||
|
||||
|
||||
#update the ammount of points for the account [compte]
|
||||
#SQLITE
|
||||
def update_row(compte, points, mycursor, mydb):
|
||||
sql = f"UPDATE daily SET points = {points} WHERE compte = '{compte}' AND date = date() ;"
|
||||
mycursor.execute(sql)
|
||||
|
Reference in New Issue
Block a user