diff --git a/src/Command/CreateKoreanProductionCommand.php b/src/Command/CreateKoreanProductionCommand.php index ccc1b5e..1c3773a 100644 --- a/src/Command/CreateKoreanProductionCommand.php +++ b/src/Command/CreateKoreanProductionCommand.php @@ -8,7 +8,6 @@ use App\Service\AnkiService; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -23,11 +22,11 @@ class CreateKoreanProductionCommand extends Command protected function configure(): void { - $this->addArgument( - 'count', - InputArgument::REQUIRED, - 'Amount of cards to make', - ); + //$this->addArgument( + // 'count', + // InputArgument::REQUIRED, + // 'Amount of cards to make', + //); } protected function execute(InputInterface $input, OutputInterface $output): int @@ -40,7 +39,8 @@ class CreateKoreanProductionCommand extends Command $existentTerms[$productionNote->getTerm()->getKanji()] = null; } - $newNotesCount = intval($input->getArgument('count')); + //$newNotesCount = intval($input->getArgument('count')); + $newProductionNotes = []; foreach ($ksns as $sentenceNote) { foreach ($sentenceNote->getTerms() as $term) { @@ -50,7 +50,7 @@ class CreateKoreanProductionCommand extends Command $existentTerms[$term->getKanji()] = null; $newProductionNotes[] = KoreanProductionNote::fromNote($sentenceNote, $term); - if (count($newProductionNotes) >= $newNotesCount) break 2; + //if (count($newProductionNotes) >= $newNotesCount) break 2; } } diff --git a/src/Command/CreateProductionCommand.php b/src/Command/CreateProductionCommand.php index b8f6747..61c9754 100644 --- a/src/Command/CreateProductionCommand.php +++ b/src/Command/CreateProductionCommand.php @@ -84,7 +84,6 @@ class CreateProductionCommand extends Command $sNote = $this->ankiService->getNote($noteIds[array_key_last($noteIds)]); $newSlNote = SentenceListeningNote::fromNote($sNote, $term); - dd($newSlNote); if (!$this->ankiService->addNote($newSlNote)) { throw new \Exception('Failed to add note!'); }