ajouts d'infos calculées au vol pour le graphe avancé vélo

This commit is contained in:
Tykayn 2025-07-14 19:18:34 +02:00 committed by tykayn
parent 979be016f2
commit a56c4b052c
4 changed files with 175 additions and 9 deletions

View file

@ -458,7 +458,7 @@ class PublicController extends AbstractController
$stats = $place->getStats();
if (!$stats) {
$stats = $this->entityManager->getRepository(Stats::class)->findOneBy(['zip_code' => $place->getZipCode()]);
$stats = $this->entityManager->getRepository(Stats::class)->findOneBy(['zone' => $place->getZipCode()]);
}
if (!$stats) {
$stats = new Stats();