forked from bton/matekasse
var name fix
This commit is contained in:
parent
efee5351b2
commit
c713c1c905
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue