From e04fbaf859a587a6bb70d154451f92503f6c5018 Mon Sep 17 00:00:00 2001 From: Alan Tygel Date: Tue, 18 Aug 2015 12:15:25 +0200 Subject: [PATCH] Update plugin.py The original "packages" sort option was broken ; changed to package_count --- ckanext/example_theme/v08_custom_helper_function/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/example_theme/v08_custom_helper_function/plugin.py b/ckanext/example_theme/v08_custom_helper_function/plugin.py index 5b3707b23b6..3dd3008a941 100644 --- a/ckanext/example_theme/v08_custom_helper_function/plugin.py +++ b/ckanext/example_theme/v08_custom_helper_function/plugin.py @@ -8,7 +8,7 @@ def most_popular_groups(): # Get a list of all the site's groups from CKAN, sorted by number of # datasets. groups = toolkit.get_action('group_list')( - data_dict={'sort': 'packages desc', 'all_fields': True}) + data_dict={'sort': 'package_count desc', 'all_fields': True}) # Truncate the list to the 10 most popular groups only. groups = groups[:10]