Skip to content

Commit

Permalink
[xs] Change the building of search indices to only pull active packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Feb 10, 2012
1 parent 08c21df commit 495be3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/search/__init__.py
Expand Up @@ -127,7 +127,7 @@ def rebuild(package=None):
else:
# rebuild index
package_index.clear()
for pkg in model.Session.query(model.Package).all():
for pkg in model.Session.query(model.Package).filter(model.Package.state == 'active').all():
package_index.insert_dict(
get_action('package_show_rest')(
{'model': model, 'ignore_auth': True},
Expand Down

0 comments on commit 495be3e

Please sign in to comment.