diff --git a/application/Building/BuildingModel.php b/application/Building/BuildingModel.php index 4c3cf5186..a408f8a93 100644 --- a/application/Building/BuildingModel.php +++ b/application/Building/BuildingModel.php @@ -282,6 +282,7 @@ class BuildingModel { b.city AS building_city, wi.id AS item_id, wi.name AS item_name, + wi.num AS item_num, wi.label AS item_label, wi.type AS item_type, wv.id AS value_id, @@ -293,7 +294,7 @@ class BuildingModel { FROM Workflowvalue wv JOIN Workflowitem wi ON wv.item_id = wi.id JOIN Building b ON wv.object_id = b.id"; - $where = ["wi.object_type = 'Building'", "wi.num < 150"]; + $where = ["wi.object_type = 'Building'", "wi.name NOT LIKE '%delimiter%'"]; if ($from !== null && $to !== null) { $where[] = "(wv.changed >= " . intval($from) . " AND wv.changed <= " . intval($to) . ")"; diff --git a/scripts/pipework/run-weekly-email.php b/scripts/pipework/run-weekly-email.php index 9be27cc6f..d48c21052 100644 --- a/scripts/pipework/run-weekly-email.php +++ b/scripts/pipework/run-weekly-email.php @@ -143,6 +143,7 @@ HTML;