From 5d95abf54026ad1901da30fde52d614d91b9800f Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 16 Jun 2021 11:53:04 -0400 Subject: [PATCH] getBuilds: clarify the names of evals vs. the query builder --- src/lib/Hydra/Helper/Nix.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index 01f65ad2..29df1c42 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -224,11 +224,11 @@ sub getEvalInfo { sub getEvals { - my ($self, $c, $evals, $offset, $rows) = @_; + my ($self, $c, $evals_query_builder, $offset, $rows) = @_; - my $me = $evals->current_source_alias; + my $me = $evals_query_builder->current_source_alias; - my @evals = $evals->search( + my @evals = $evals_query_builder->search( { hasnewbuilds => 1 }, { order_by => "$me.id DESC", rows => $rows, offset => $offset , prefetch => { evaluationerror => [ ] } });