From 52a9f1a14e97f2bc34623ecfc069a89901886fe6 Mon Sep 17 00:00:00 2001 From: Rob en Lizi Vermaas Date: Sun, 24 Mar 2013 18:50:17 +0100 Subject: [PATCH] Use get_column for 'as' column (max_stoptime). --- src/lib/Hydra/Controller/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index f8e9cc38..fdaeb80d 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -79,7 +79,7 @@ sub machines :Local Args(0) { { stoptime => { '!=', undef } }, { select => [ 'machine', { max => 'stoptime', -as => 'max_stoptime' }], group_by => "machine" }); while (my $idle = $idles->next) { - ${$machines}{$idle->machine}{'idle'} = $idle->max_stoptime; + ${$machines}{$idle->machine}{'idle'} = $idle->get_column('max_stoptime'); } $c->stash->{machines} = $machines; $c->stash->{steps} = [ $c->model('DB::BuildSteps')->search(