mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	unrecognized token: "{"
This commit is contained in:
		@@ -20,7 +20,7 @@ def update_row(compte, points, mycursor, mydb):
 | 
				
			|||||||
def update_last(compte, points, mycursor, mydb):
 | 
					def update_last(compte, points, mycursor, mydb):
 | 
				
			||||||
    sql1 = f"UPDATE comptes SET last_pts = {points} WHERE compte = '{compte}';"
 | 
					    sql1 = f"UPDATE comptes SET last_pts = {points} WHERE compte = '{compte}';"
 | 
				
			||||||
    sql2 = f"select * from comptes where compte = '{compte}'"
 | 
					    sql2 = f"select * from comptes where compte = '{compte}'"
 | 
				
			||||||
    sql3 = "INSERT INTO comptes (compte, last_pts,banned) VALUES ('{compte}', {points}, 0)"
 | 
					    sql3 = f"INSERT INTO comptes (compte, last_pts,banned) VALUES ('{compte}', {points}, 0)"
 | 
				
			||||||
    cmd = mycursor.execute(sql2)
 | 
					    cmd = mycursor.execute(sql2)
 | 
				
			||||||
    if len(list(cmd)) == 0:
 | 
					    if len(list(cmd)) == 0:
 | 
				
			||||||
        mycursor.execute(sql3)
 | 
					        mycursor.execute(sql3)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user