From c713c1c905e5008cbd4049fae58d108ee56fec62 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 5 Jul 2023 19:10:01 +0200 Subject: [PATCH] var name fix --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index d8bdfda..58440f3 100644 --- a/main.py +++ b/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()