From cd39f7109ee81e076cd7a7b131a29d8288dba993 Mon Sep 17 00:00:00 2001 From: piair Date: Sat, 26 Aug 2023 09:11:26 +0200 Subject: [PATCH] unrecognized token: "{" --- modules/db.py | 2 +- version | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/db.py b/modules/db.py index 3a8934d..a32549a 100644 --- a/modules/db.py +++ b/modules/db.py @@ -20,7 +20,7 @@ def update_row(compte, points, mycursor, mydb): def update_last(compte, points, mycursor, mydb): sql1 = f"UPDATE comptes SET last_pts = {points} 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) if len(list(cmd)) == 0: mycursor.execute(sql3) diff --git a/version b/version index 2dc8e03..81239e1 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.2.0 +v6.2.10