mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-12-18 20:52:44 +01:00
commande pour enlever les duplications de Places
This commit is contained in:
parent
37fd162824
commit
eee5d6349a
4 changed files with 217 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue