Skip to content

Commit

Permalink
Update plugin.py
Browse files Browse the repository at this point in the history
The original "packages" sort option was broken ; changed to package_count
  • Loading branch information
alantygel committed Aug 18, 2015
1 parent 2dfc35d commit e04fbaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/example_theme/v08_custom_helper_function/plugin.py
Expand Up @@ -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]
Expand Down

0 comments on commit e04fbaf

Please sign in to comment.