From 145d93333d7300e24d569f249e7368e89f96c660 Mon Sep 17 00:00:00 2001 From: Krrupa <25496389+sudheshna-donthineni@users.noreply.github.com> Date: Thu, 14 Dec 2023 18:15:54 +0530 Subject: [PATCH] Update group.py --- app/router/group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/router/group.py b/app/router/group.py index 881d5e0..117b6c6 100644 --- a/app/router/group.py +++ b/app/router/group.py @@ -32,14 +32,14 @@ def get_group_data(request: Request): } """ query_params = helpers.validate_and_build_query_params( - request, mapping.GROUP_QUERY_PARAMS + request.query_params, mapping.GROUP_QUERY_PARAMS ) response = requests.get( routes.group_type_db_url, params=query_params, headers=db_request_token() ) if helpers.is_response_valid(response, "Group API could not fetch the data!"): return helpers.is_response_empty( - response.json(), False, "Group record does not exist!" + response.json()[0], False, "Group record does not exist!" )