Fix issue #352
This commit is contained in:
parent
9f76e5fff2
commit
6f87f03519
@ -220,6 +220,8 @@ class AnkiConnect:
|
|||||||
ankiNote[ankiName] = value
|
ankiNote[ankiName] = value
|
||||||
break
|
break
|
||||||
|
|
||||||
|
self.addMediaFromNote(ankiNote, note)
|
||||||
|
|
||||||
allowDuplicate = False
|
allowDuplicate = False
|
||||||
duplicateScope = None
|
duplicateScope = None
|
||||||
duplicateScopeDeckName = None
|
duplicateScopeDeckName = None
|
||||||
@ -704,8 +706,6 @@ class AnkiConnect:
|
|||||||
def addNote(self, note):
|
def addNote(self, note):
|
||||||
ankiNote = self.createNote(note)
|
ankiNote = self.createNote(note)
|
||||||
|
|
||||||
self.addMediaFromNote(ankiNote, note)
|
|
||||||
|
|
||||||
collection = self.collection()
|
collection = self.collection()
|
||||||
self.startEditing()
|
self.startEditing()
|
||||||
nCardsAdded = collection.addNote(ankiNote)
|
nCardsAdded = collection.addNote(ankiNote)
|
||||||
|
Loading…
Reference in New Issue
Block a user