From e7c86dedae1ad3d6875787236abe0cc7e0371e7f Mon Sep 17 00:00:00 2001 From: Adnan Kattekaden Date: Sun, 17 Dec 2023 21:20:01 +0530 Subject: [PATCH] full name added --- models/queries.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/models/queries.py b/models/queries.py index 87539de..b68f921 100644 --- a/models/queries.py +++ b/models/queries.py @@ -8,8 +8,7 @@ def fetch_queries(muid): query = """ SELECT user.muid, - user.first_name, - user.last_name, + user.full_name, user.profile_pic, role.title AS role, wallet.karma, @@ -34,7 +33,7 @@ def fetch_queries(muid): if user_data: data = { "muid": f"{user_data[0][0]}", - "name": f"{user_data[0][1]} {user_data[0][2]}" if user_data[0][2] else user_data[0][1], + "name": f"{user_data[0][1]}", "profile_pic": user_data[0][3], "karma": str(user_data[0][5]), "github_username": user_data[0][7],