Allow passing deleteExisting in addNote (#309)

This commit is contained in:
Abdo 2022-03-27 06:58:00 +03:00 committed by GitHub
parent 54a7105bf9
commit 0e467372eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -709,7 +709,8 @@ class AnkiConnect:
data=media.get('data'),
path=media.get('path'),
url=media.get('url'),
skipHash=media.get('skipHash'))
skipHash=media.get('skipHash'),
deleteExisting=media.get('deleteExisting'))
if mediaFilename is not None:
for field in media['fields']: