Skip to content

Commit

Permalink
Merge pull request #94 from FCSCOpendata/fix/approval-bug
Browse files Browse the repository at this point in the history
Removed extras from group result for package_show and package_search API
  • Loading branch information
MuhammadIsmailShahzad authored Sep 14, 2022
2 parents f8ccb3c + f8c8c4a commit 6883967
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 6883967

Please sign in to comment.