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)