From 0e467372ebb58e7b2682391fbe0feb3ed02e0aa7 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 7f4ddf5..d405ac1 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -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']: