Allow passing deleteExisting in addNote (#309)

This commit is contained in:
Abdo 2022-03-27 06:58:00 +03:00 committed by Alex Yatskov
parent 81fccbfac6
commit a433f600a4

View File

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