var name fix

This commit is contained in:
2000-Trek 2023-07-05 19:10:01 +02:00
parent efee5351b2
commit c713c1c905

View file

@ -318,9 +318,9 @@ def get_id():
elif tag_list != []:
tag = tag_list[0]
c.execute(f"SELECT * FROM users WHERE id={tag[1]}")
users = c.fetchall()
if users != []:
balance_old = users[0][2]
user_list = c.fetchall()
if user_list != []:
balance_old = user_list[0][2]
if users.qsize() == 0:
c.execute(f"UPDATE users SET balance = balance - 1 WHERE id={tag[1]}")
conn.commit()