diff --git a/apkg_builder.py b/apkg_builder.py index bdc1aa6..8581018 100644 --- a/apkg_builder.py +++ b/apkg_builder.py @@ -516,6 +516,9 @@ def build_vocab_deck( note = genanki.Note( model=VOCAB_MODEL, + # Stable GUID: identity = Hebrew word only, so audio/images/examples + # can be added on reimport without breaking note matching. + guid=genanki.guid_for(word), fields=[ word, root, @@ -576,6 +579,10 @@ def build_conj_deck( return note = genanki.Note( model=CONJ_MODEL, + # Stable GUID: identity = (infinitive, pronoun, tense) so that + # audio and other content fields can be updated on reimport + # without Anki treating the note as a new/different note. + guid=genanki.guid_for(infinitive, pronoun, tense), fields=[ infinitive, ref_form,