fix Stemweb reporting bug
Tara L Andrews [Tue, 6 May 2014 15:30:03 +0000 (15:30 +0000)]
lib/stemmaweb/Controller/Stemweb.pm

index 3dc4ede..a9e7755 100644 (file)
@@ -184,7 +184,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,