Commit bd9f9855 authored by Jessica Severin's avatar Jessica Severin
Browse files

added fetch_by_status method for use in unblocking rule code

parent 2836abf0
......@@ -98,6 +98,19 @@ sub fetch_by_needed_workers {
}
sub fetch_by_status {
my $self = shift;
my $constraint = "ast.status in (";
while(@_) {
my $status = shift;
$constraint .= "'$status' ";
}
$constraint .= ")";
return $self->_generic_fetch($constraint);
}
#
# INTERNAL METHODS
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment