This commit is contained in:
Scott Noyes 2022-09-12 09:07:59 -05:00
parent 9f76e5fff2
commit 6f87f03519

View File

@ -220,6 +220,8 @@ class AnkiConnect:
ankiNote[ankiName] = value
break
self.addMediaFromNote(ankiNote, note)
allowDuplicate = False
duplicateScope = None
duplicateScopeDeckName = None
@ -704,8 +706,6 @@ class AnkiConnect:
def addNote(self, note):
ankiNote = self.createNote(note)
self.addMediaFromNote(ankiNote, note)
collection = self.collection()
self.startEditing()
nCardsAdded = collection.addNote(ankiNote)