From a433f600a41fad839d0762b256d8b569d24203d9 Mon Sep 17 00:00:00 2001 From: Abdo Date: Sun, 27 Mar 2022 06:58:00 +0300 Subject: [PATCH] Allow passing deleteExisting in addNote (#309) --- plugin/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/__init__.py b/plugin/__init__.py index 7fc723e..6b50f4d 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -728,7 +728,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']: