I’m trying to add a new card with Python
card_id = 123456789
model = mw.col.models.by_name("Basic")
new_note = mw.col.newNote(model)
new_note["Front"] = "Front content of the card"
mw.col.add_note(new_note, card_id)
The model
variable retrieves the correct card type, however, when I use it in new_note
, it retrieves an entirely random card type (cloze overlapping), does anyone know what could be causing it or what am I doing wrong?