commit/galaxy-central: inithello: Fixed server error when tool search returns no results.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/dc83012e4b83/ changeset: dc83012e4b83 user: inithello date: 2012-11-29 21:02:56 summary: Fixed server error when tool search returns no results. affected #: 1 file diff -r 44ae555b804bae7aa8170326ff37d5c0dc47be28 -r dc83012e4b83cbf33c45b28982232bfcfcd29f3b lib/galaxy/webapps/community/controllers/repository.py --- a/lib/galaxy/webapps/community/controllers/repository.py +++ b/lib/galaxy/webapps/community/controllers/repository.py @@ -501,7 +501,8 @@ .filter( or_( *clause_list ) ) \ .order_by( model.Repository.name ) # Return an empty query - return [] + return trans.sa_session.query( model.RepositoryMetadata ) \ + .filter( model.RepositoryMetadata.id < 0 ) class InstallMatchedRepositoryGrid( MatchedRepositoryGrid ): columns = [ col for col in MatchedRepositoryGrid.columns ] Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket