Added filter for malicious to repository_revisions API controller.

This commit is contained in:
Dave Bouvier
2013-02-28 10:33:22 -05:00
parent ee254040de
commit 0cdb98a40c
@@ -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: