commande pour enlever les duplications de Places

This commit is contained in:
Tykayn 2025-08-02 15:14:13 +02:00 committed by tykayn
parent 37fd162824
commit eee5d6349a
4 changed files with 217 additions and 6 deletions

View file

@ -142,6 +142,14 @@ class ProcessLabourageQueueCommand extends Command
}
}
$stats->setDateLabourageDone(new \DateTime());
// Update city name from API if available
$apiCityName = $this->motocultrice->get_city_osm_from_zip_code($stats->getZone());
if ($apiCityName && $apiCityName !== $stats->getName()) {
$io->info(sprintf('Updating city name from "%s" to "%s" based on API data', $stats->getName(), $apiCityName));
$stats->setName($apiCityName);
}
$io->info('Récupération des followups de cette ville...');
// $this->followUpService->generateCityFollowUps($stats, $this->motocultrice, $this->entityManager);