Merge branch 'develop'
This commit is contained in:
commit
fe5647324b
@ -207,7 +207,7 @@ foreach ($sourcesList as $source => $item) {
|
||||
|
||||
// --- Vérification si score déjà calculé
|
||||
try {
|
||||
$sql = "SELECT siren, dateUpdate FROM jo.scores_surveillance WHERE siren = :siren";
|
||||
$sql = "SELECT siren, indiScoreDate, dateUpdate FROM jo.scores_surveillance WHERE siren = :siren";
|
||||
$stmt = $conn->prepare($sql);
|
||||
$stmt->bindValue('siren', $item->siren);
|
||||
$stmt->execute();
|
||||
@ -227,7 +227,7 @@ foreach ($sourcesList as $source => $item) {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if ($survResult->dateUpdate == '0000-00-00 00:00:00') {
|
||||
if ($survResult->indiScoreDate == '0000-00-00') {
|
||||
$toCalculate = true;
|
||||
} else {
|
||||
$calculDate = DateTime::createFromFormat('YmdHis', $survResult->dateUpdate);
|
||||
|
Loading…
Reference in New Issue
Block a user