def add_money(self, user_id, money):
with self.connection:
return self.cursor.execute('UPDATE users SET money = ? WHERE user_id = ?', (money, user_id,))
def add_check(self, user_id, money, bill_id):
with self.connection:
self.cursor.execute('INSERT INTO check (user_id, money, bill_id) VALUES (?,?,?)', (user_id, money, bill_id,))
def get_check(self, bill_id):
with self.connection:
result = self.cursor.execute('SELECT * FROM check WHERE bill_if = ?', (bill_id,)).fetchall()
if not bool(len(result)):
return False
return result[0]
def delate_check(self, bill_id):
with self.connection:
self.cursor.execute('DELETE FROM check WHERE bill_id = ?', (bill_id,))
И вот сама ошибка : near "check": syntax error
Я вроде бы переправил все несколько раз, но не смог найти ошибку.