More data

This commit is contained in:
CHIEFSOFT\ameye
2024-12-16 06:45:50 -05:00
parent 4e85c85b22
commit 5453894713
+8
View File
@@ -231,6 +231,14 @@ def panel_account(current_user):
@app.route("/panel/account/dash")
@token_required
def dashboard(current_user):
print( current_user)
FIND_USER_DETAIL= "SSELECT id,uid,username,updated,email,account_name, firstname, lastname FROM members LIMIT 1"
with connection:
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
cursor.execute(FIND_USER_DETAIL)
account = cursor.fetchall()
print(account[0])
dash_data = {
"username": "sanyaameye",
"account_name": "This is the test account name",