Merge branch 'develop'

This commit is contained in:
Michael RICOIS 2016-12-06 11:05:49 +01:00
commit fe5647324b

View File

@ -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);