From 0cdb98a40cd13c0d66830e6d2ebce3bb5ab20a56 Mon Sep 17 00:00:00 2001 From: Dave Bouvier Date: Thu, 28 Feb 2013 10:33:22 -0500 Subject: [PATCH] Added filter for malicious to repository_revisions API controller. --- lib/galaxy/webapps/tool_shed/api/repository_revisions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/galaxy/webapps/tool_shed/api/repository_revisions.py b/lib/galaxy/webapps/tool_shed/api/repository_revisions.py index 0d035b1d88c..e4f667643d1 100644 --- a/lib/galaxy/webapps/tool_shed/api/repository_revisions.py +++ b/lib/galaxy/webapps/tool_shed/api/repository_revisions.py @@ -35,6 +35,10 @@ class RepositoryRevisionsController( BaseAPIController ): downloadable = kwd.get( 'downloadable', None ) if downloadable is not None: clause_list.append( trans.model.RepositoryMetadata.table.c.downloadable == util.string_as_bool( downloadable ) ) + # Filter by malicious if received. + malicious = kwd.get( 'malicious', None ) + if malicious is not None: + clause_list.append( trans.model.RepositoryMetadata.table.c.malicious == util.string_as_bool( malicious ) ) # Filter by tools_functionally_correct if received. tools_functionally_correct = kwd.get( 'tools_functionally_correct', None ) if tools_functionally_correct is not None: