From f8c8c4abbb88ed2313811c026dff28e7cb16d44a Mon Sep 17 00:00:00 2001 From: sagarggh Date: Tue, 13 Sep 2022 14:02:40 +0545 Subject: [PATCH] [fix][xs]: remove extras from group result for package_show and package_search API. --- ckanext/fcscopendata/logic/action/get.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ckanext/fcscopendata/logic/action/get.py b/ckanext/fcscopendata/logic/action/get.py index dfaab32..baa877f 100644 --- a/ckanext/fcscopendata/logic/action/get.py +++ b/ckanext/fcscopendata/logic/action/get.py @@ -30,6 +30,7 @@ def package_search(up_func, context, data_dict): 'include_tags': False, 'include_followers': False }) + group_dict.pop('extras', None) pkg['groups'][idx] = group_dict # Get total downloads from db tables. @@ -84,6 +85,7 @@ def package_show(up_func,context,data_dict): 'include_tags': False, 'include_followers': False }) + group_dict.pop('extras', None) result['groups'][idx] = group_dict if result.get('tags', []):