modified: app.py
This commit is contained in:
2
app.py
2
app.py
@@ -174,7 +174,7 @@ def user_dashboard():
|
|||||||
connection = get_db_connection()
|
connection = get_db_connection()
|
||||||
cursor = connection.cursor(dictionary=True)
|
cursor = connection.cursor(dictionary=True)
|
||||||
|
|
||||||
cursor.execute("SELECT points, ban FROM user_data WHERE user_id = %s", (user_id,))
|
cursor.execute("SELECT points, permission, ban FROM user_data WHERE user_id = %s", (user_id,))
|
||||||
user_data = cursor.fetchone()
|
user_data = cursor.fetchone()
|
||||||
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user