From dcb3924b3dd2817f542ce2709e79d2d31af9b37f Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 6 Dec 2016 11:03:18 +0100 Subject: [PATCH] Prise en compte pas de calcul --- bin/dataScoring.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dataScoring.php b/bin/dataScoring.php index 5064deec..08628767 100644 --- a/bin/dataScoring.php +++ b/bin/dataScoring.php @@ -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);