From 65050e0603aa5fc958b7621d2c0846f1f594aab3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 19 May 2017 21:20:11 +0300 Subject: Fix the builds page filter --- mod/mod-builds.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx index e62e1e5..757ddca 100644 --- a/mod/mod-builds.cxx +++ b/mod/mod-builds.cxx @@ -144,7 +144,7 @@ build_query (const C& configs, const brep::params::builds& params) // Build machine name. // if (!params.machine ().empty ()) - query::machine.like (transform (params.machine ())); + q = q && query::machine.like (transform (params.machine ())); // Build target. // @@ -185,7 +185,10 @@ build_query (const C& configs, const brep::params::builds& params) sq = sq || query::status == to_string (st); } - q = q && sq; + // Note that the result status may present for the building state as + // well (rebuild). + // + q = q && query::state == "built" && sq; } } } -- cgit v1.1