Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Don't hide datasetless organizations in search results
Browse files Browse the repository at this point in the history
  • Loading branch information
razz0 committed Nov 17, 2015
1 parent 4bb27b7 commit 0b6ce79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/kata/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,8 @@ def index(self):
}
global_results = self._action('group_list')(context, data_dict_global_results)

global_results = [org for org in global_results if org.get('package_count', 0) > 0]
if not q:
global_results = [org for org in global_results if org.get('package_count', 0) > 0]

page_results_start = items_per_page * (page - 1)
page_results_end = page_results_start + items_per_page
Expand Down

0 comments on commit 0b6ce79

Please sign in to comment.