Skip to content

Commit

Permalink
fix _query method to return a query instead of a list
Browse files Browse the repository at this point in the history
  • Loading branch information
martenson committed Aug 12, 2015
1 parent 01b69e3 commit 6a25d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/managers/sharable.py
Expand Up @@ -116,11 +116,11 @@ def unpublish( self, item, flush=True ):

def _query_published( self, filters=None, **kwargs ):
"""
Query all published items.
Return a query for all published items.
"""
published_filter = self.model_class.published == true()
filters = self._munge_filters( published_filter, filters )
return self.list( filters=filters, **kwargs )
return self.query( filters=filters, **kwargs )

def list_published( self, **kwargs ):
"""
Expand Down

0 comments on commit 6a25d97

Please sign in to comment.