From 4718a059f842a791c89a1922996bb8f1dbea8f65 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 16 May 2017 23:27:53 +0300 Subject: Add filter form to builds page --- mod/mod-build-log.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'mod/mod-build-log.cxx') diff --git a/mod/mod-build-log.cxx b/mod/mod-build-log.cxx index b998f8d..a1e73ca 100644 --- a/mod/mod-build-log.cxx +++ b/mod/mod-build-log.cxx @@ -170,8 +170,8 @@ handle (request& rq, response& rs) // Make sure the build configuration still exists. // - auto i (build_conf_map_->find (id.configuration.c_str ())); - if (i == build_conf_map_->end ()) + if (build_conf_map_->find (id.configuration.c_str ()) == + build_conf_map_->end ()) config_expired ("no configuration"); // Make sure the package still exists. @@ -215,9 +215,8 @@ handle (request& rq, response& rs) << "config: " << b->configuration << endl << "machine: " << *b->machine << " (" << *b->machine_summary << ")" << endl - << "target: " << (i->second->target - ? i->second->target->string () - : "") << endl + << "target: " << (b->target ? b->target->string () : "") + << endl << "timestamp: "; butl::to_stream (os, b->timestamp, "%Y-%m-%d %H:%M:%S%[.N] %Z", true, true); -- cgit v1.1