Saving all runs in database
This commit is contained in:
parent
8fc0485d57
commit
17072dee45
@ -69,7 +69,7 @@ if (filter_var($jobnameResult[0]["url"], FILTER_VALIDATE_URL)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($nosave !== true && $statuscode != $jobnameResult[0]["expected"]) {
|
if($nosave !== true) {
|
||||||
$stmt = $db->prepare("INSERT INTO runs(job, statuscode, result, timestamp) VALUES(?, ?, ?, ?)");
|
$stmt = $db->prepare("INSERT INTO runs(job, statuscode, result, timestamp) VALUES(?, ?, ?, ?)");
|
||||||
$stmt->execute(array($jobID, $statuscode, $body, $timestamp));
|
$stmt->execute(array($jobID, $statuscode, $body, $timestamp));
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ foreach ($results as $result) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($nosave !== true && $statuscode != $result["expected"]) {
|
if($nosave !== true) {
|
||||||
$stmt = $db->prepare("INSERT INTO runs(job, statuscode, result, timestamp) VALUES(?, ?, ?, ?)");
|
$stmt = $db->prepare("INSERT INTO runs(job, statuscode, result, timestamp) VALUES(?, ?, ?, ?)");
|
||||||
$stmt->execute(array($result['jobID'], $statuscode, $body, time()));
|
$stmt->execute(array($result['jobID'], $statuscode, $body, time()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user