From 429fa094f1adcc0461adc754f044637e995da4a6 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 16 Dec 2024 06:51:29 -0500 Subject: [PATCH] user uid --- services/web/project/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 40c7583..6591978 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -232,7 +232,8 @@ def panel_account(current_user): @token_required def dashboard(current_user): print( current_user["user"]["uid"]) - FIND_USER_DETAIL= "SELECT id,uid,username,updated,email,account_name, firstname, lastname FROM members LIMIT 1" + user_uid = current_user["user"]["uid"] + FIND_USER_DETAIL= "SELECT id,uid,username,updated,email,account_name, firstname, lastname FROM members WHERE uid::text = '"+user_uid+"'" with connection: with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor: cursor.execute(FIND_USER_DETAIL)