Skip to content

Commit

Permalink
[fix][xs]: remove extras from group result for package_show and packa…
Browse files Browse the repository at this point in the history
…ge_search API.
  • Loading branch information
sagargg committed Sep 13, 2022
1 parent f8ccb3c commit f8c8c4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/fcscopendata/logic/action/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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', []):
Expand Down

0 comments on commit f8c8c4a

Please sign in to comment.