Skip to content

Commit

Permalink
fix to groups list api in ckan 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ThHanke authored Sep 12, 2024
1 parent 016cb89 commit 1e774e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/csvwmapandtransform/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, **kwargs):


def csvwmapandtransform_find_mappings(context: Context, data_dict):
groups = toolkit.get_action("group_list")({}, {})
groups = [entry.name for entry in toolkit.get_action("group_list")({}, {"all_fields": True})]
if MAPPING_GROUP in groups:
mapping_group = toolkit.get_action("group_show")(
{}, {"id": MAPPING_GROUP, "include_datasets": True}
Expand Down

0 comments on commit 1e774e7

Please sign in to comment.