diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-19 21:20:11 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-19 21:20:11 +0300 |
commit | 65050e0603aa5fc958b7621d2c0846f1f594aab3 (patch) | |
tree | 7c571ceabbabf43c00d63522a314b275e6871329 | |
parent | 0035543c17c070077ec4c62174e5c6f8024c8a6b (diff) |
Fix the builds page filter
-rw-r--r-- | mod/mod-builds.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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; } } } |