Changes to support bug #33

Remove query limit when retrieving CPEs
This commit is contained in:
2018-11-16 11:54:19 -05:00
parent ca89e02c4e
commit f530c5a2a1
5 changed files with 426 additions and 318 deletions

View File

@ -8798,7 +8798,10 @@ EOQ;
];
}
$this->help->select("sagacity.catalog_scripts", null, $where, [
$this->help->select("sagacity.catalog_scripts cs", ['c.id', 'cs.*'], $where, [
'table_joins' => [
"LEFT JOIN sagacity.checklist c ON c.file_name = cs.file_name"
],
'order' => "FIELD(`status`, 'ERROR','RUNNING','IN QUEUE','COMPLETE'),`file_name`"
]);
@ -8813,6 +8816,7 @@ EOQ;
foreach ($rows as $row) {
$script = new catalog_script();
$script->{'id'} = $row['id'];
$script->file_name = $row['file_name'];
$script->pid = $row['pid'];
$script->start_time = new DateTime($row['start_time']);