feat: Change deck locations & use constants for SL

This commit is contained in:
Dendy 2025-09-20 06:53:05 +02:00
parent 14cde2ee70
commit 0da46316f2
4 changed files with 4 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class CreateProductionCommand extends Command
$sNote = $this->ankiService->getNote($noteIds[array_key_last($noteIds)]);
$newSlNote = SentenceListeningNote::fromNote($sNote, $term);
if (!$this->ankiService->addNote($newSlNote, 'production')) {
if (!$this->ankiService->addNote($newSlNote, SentenceListeningNote::DECK)) {
throw new \Exception('Failed to add note!');
}
}

View File

@ -5,6 +5,7 @@ namespace App\Entity;
class SentenceListeningNote extends Note
{
const MODEL_NAME = 'Japanese sentences listening';
const DECK = 'jp::production';
private ?array $mediaInfo = [];
private ?Term $term = null;

View File

@ -7,7 +7,7 @@ use App\Utils\Number;
class UnicodeNote extends Note
{
const string MODEL_NAME = 'Unicode';
const string DECK = 'unicode';
const string DECK = 'jp::unicode';
private ?int $codepoint = null;
/** @var Term[] */