X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstemmaweb%2FController%2FStemweb.pm;h=7d83eb3dee427393710dab1c0a138f9fd8f64d1c;hb=69d4ecfec67128cb7bcfcd31156995179f401178;hp=75ae4d878a712726c0f356d9f39d6aad6b464a4a;hpb=f6dbd41907b2aa94cfc713c091abe6fbb2910694;p=scpubgit%2Fstemmaweb.git diff --git a/lib/stemmaweb/Controller/Stemweb.pm b/lib/stemmaweb/Controller/Stemweb.pm index 75ae4d8..7d83eb3 100644 --- a/lib/stemmaweb/Controller/Stemweb.pm +++ b/lib/stemmaweb/Controller/Stemweb.pm @@ -214,7 +214,7 @@ sub _process_stemweb_result { } $c->stash->{'result'} = { status => 'notfound' }; } - } elsif( $answer->{status} == -1 ) { + } elsif( $answer->{status} == 1 ) { $c->stash->{'result'} = { 'status' => 'running' }; } else { return _json_error( $c, 500, @@ -288,7 +288,7 @@ sub request :Local :Args(0) { # 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 ) );