Skip to content

Commit

Permalink
Merge branch 'small-fixes-in-template-docs' of https://github.com/ala…
Browse files Browse the repository at this point in the history
…ntygel/ckan into alantygel-small-fixes-in-template-docs
  • Loading branch information
amercader committed Aug 18, 2015
2 parents 79b013b + e04fbaf commit 6438db7
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 6438db7

Please sign in to comment.