mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-12-18 20:52:44 +01:00
up commande de labourage
This commit is contained in:
parent
da60f964ab
commit
6134381422
2 changed files with 38 additions and 365 deletions
|
|
@ -142,8 +142,18 @@ class ProcessLabourageQueueCommand extends Command
|
|||
}
|
||||
}
|
||||
$stats->setDateLabourageDone(new \DateTime());
|
||||
// update completion
|
||||
$stats->computeCompletionPercent();
|
||||
$io->info('Pourcentage de complétion: ' . $stats->getCompletionPercent());
|
||||
$this->entityManager->persist($stats);
|
||||
$this->entityManager->flush();
|
||||
|
||||
$io->info('Récupération des followups de cette ville...');
|
||||
$this->followUpService->generateCityFollowUps($stats, $this->motocultrice, $this->entityManager);
|
||||
|
||||
$this->entityManager->persist($stats);
|
||||
$this->entityManager->flush();
|
||||
|
||||
$io->success("Labourage terminé : $processedCount nouveaux lieux, $updatedCount lieux mis à jour.");
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue