compute after labourage in command
This commit is contained in:
parent
d9b95f5c1a
commit
37fd162824
2 changed files with 5 additions and 5 deletions
|
@ -142,14 +142,14 @@ class ProcessLabourageQueueCommand extends Command
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$stats->setDateLabourageDone(new \DateTime());
|
$stats->setDateLabourageDone(new \DateTime());
|
||||||
|
$io->info('Récupération des followups de cette ville...');
|
||||||
|
// $this->followUpService->generateCityFollowUps($stats, $this->motocultrice, $this->entityManager);
|
||||||
|
|
||||||
|
|
||||||
// update completion
|
// update completion
|
||||||
$stats->computeCompletionPercent();
|
$stats->computeCompletionPercent();
|
||||||
$io->info('Pourcentage de complétion: ' . $stats->getCompletionPercent());
|
$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->persist($stats);
|
||||||
$this->entityManager->flush();
|
$this->entityManager->flush();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue