feat: Change deck locations & use constants for SL
This commit is contained in:
parent
14cde2ee70
commit
0da46316f2
|
@ -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!');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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[] */
|
||||
|
|
Loading…
Reference in New Issue