Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #353 from snoyes/fix-#352
Browse files Browse the repository at this point in the history
Fix issue #352
  • Loading branch information
FooSoft authored Sep 17, 2022
2 parents 9f76e5f + 6f87f03 commit 773dc49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ def createNote(self, note):
ankiNote[ankiName] = value
break

self.addMediaFromNote(ankiNote, note)

allowDuplicate = False
duplicateScope = None
duplicateScopeDeckName = None
Expand Down Expand Up @@ -704,8 +706,6 @@ def deleteMediaFile(self, filename):
def addNote(self, note):
ankiNote = self.createNote(note)

self.addMediaFromNote(ankiNote, note)

collection = self.collection()
self.startEditing()
nCardsAdded = collection.addNote(ankiNote)
Expand Down

0 comments on commit 773dc49

Please sign in to comment.