From 310e918baa2cb919ea5a1c700a4baf1ad24d0cef Mon Sep 17 00:00:00 2001 From: Florent VIOLLEAU Date: Mon, 9 Dec 2024 01:17:15 +0100 Subject: [PATCH] [AtmoOccitanieBridge] fix change on index calculation and add missing text --- bridges/AtmoOccitanieBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/AtmoOccitanieBridge.php b/bridges/AtmoOccitanieBridge.php index 2388d7e4..9e08573e 100644 --- a/bridges/AtmoOccitanieBridge.php +++ b/bridges/AtmoOccitanieBridge.php @@ -43,13 +43,13 @@ class AtmoOccitanieBridge extends BridgeAbstract $indice = $lastRecommendationsDom->find('.current-indice .indice div', 0)->innertext; $informationDescriptionMessage = $lastRecommendationsDom->find('.current-indice .description p', 0)->innertext; - $message = "$generalMessage L'indice est de $indice/10. $informationDescriptionMessage. $recommendationsMessage"; + $message = "$generalMessage L'indice est de " . 6 - $indice . "/6. $informationDescriptionMessage. $recommendationsMessage"; $city = $this->getInput('city'); $item['uri'] = $uri; $today = date('d/m/Y'); $item['title'] = "Bulletin de l'air du $today pour la ville : $city."; - //$item['title'] .= ' Retrouvez plus d\'informations en allant sur atmo-occitanie.org #QualiteAir. ' . $message; + $item['title'] .= ' Retrouvez plus d\'informations en allant sur atmo-occitanie.org #QualiteAir. ' . $message; $item['title'] .= ' #QualiteAir. ' . $message; $item['author'] = 'floviolleau'; $item['content'] = $message;