log erreurs labourrage

This commit is contained in:
Tykayn 2025-06-26 23:40:37 +02:00 committed by tykayn
parent 12d4db370f
commit 6796d52119
4 changed files with 66 additions and 20 deletions

View file

@ -200,8 +200,8 @@ class FraicheurController extends AbstractController
$villesByBinEcart = [];
foreach ($budgetParHabitant as $ville) {
// Histogramme budget par habitant (pas de 100€)
$binBudget = (string)(ceil($ville['budget_par_habitant'] / 100) * 100);
// Histogramme budget par habitant (pas de 50€)
$binBudget = (string)(ceil($ville['budget_par_habitant'] / 50) * 50);
if (!isset($histogramBudgetParHabitant[$binBudget])) {
$histogramBudgetParHabitant[$binBudget] = 0;
}