From 0491ea3455cd5c59e2825e67db9a7aa5b416fe87 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Fri, 8 Oct 2010 10:45:40 +0000 Subject: [PATCH] hydra: catalyst plain view doesn;t work with data => 0, so put some whitespace around it --- src/lib/Hydra/Controller/API.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Controller/API.pm b/src/lib/Hydra/Controller/API.pm index 2cfa1b04..580f6957 100644 --- a/src/lib/Hydra/Controller/API.pm +++ b/src/lib/Hydra/Controller/API.pm @@ -147,7 +147,7 @@ sub nrqueue : Chained('api') PathPart('nrqueue') Args(0) { my ($self, $c) = @_; my $nrQueuedBuilds = $c->model('DB::BuildSchedulingInfo')->count(); $c->stash->{'plain'} = { - data => $nrQueuedBuilds + data => " $nrQueuedBuilds" }; $c->forward('Hydra::View::Plain'); } @@ -156,7 +156,7 @@ sub nrrunning : Chained('api') PathPart('nrrunning') Args(0) { my ($self, $c) = @_; my $nrRunningBuilds = $c->model('DB::BuildSchedulingInfo')->search({ busy => 1 }, {})->count(); $c->stash->{'plain'} = { - data => $nrRunningBuilds + data => " $nrRunningBuilds" }; $c->forward('Hydra::View::Plain'); }