up commande de labourage

This commit is contained in:
Tykayn 2025-08-02 10:59:49 +02:00 committed by tykayn
parent da60f964ab
commit 6134381422
2 changed files with 38 additions and 365 deletions

View file

@ -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;
}