}
$c->stash->{'result'} = { status => 'notfound' };
}
- } elsif( $answer->{status} == -1 ) {
+ } elsif( $answer->{status} == 1 ) {
$c->stash->{'result'} = { 'status' => 'running' };
} else {
return _json_error( $c, 500,
# Call to the appropriate URL with the request parameters.
my $ua = LWP::UserAgent->new();
- $c->log->debug( 'Sending request to Stemweb: ' . to_json( $stemweb_request ) );
+ # $c->log->debug( 'Sending request to Stemweb: ' . to_json( $stemweb_request ) );
my $resp = $ua->post( $self->stemweb_url . "/algorithms/process/$algorithm/",
'Content-Type' => 'application/json; charset=utf-8',
'Content' => encode_json( $stemweb_request ) );