From eac658716ae62e47fa1c8a29f6d68da2ed19c2e3 Mon Sep 17 00:00:00 2001 From: oakkitten Date: Wed, 30 Mar 2022 19:34:58 +0100 Subject: [PATCH] Fix api method `findAndReplaceInModels` I think this was a typo? --- plugin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/__init__.py b/plugin/__init__.py index 5234d1e..db6f91b 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -1137,7 +1137,7 @@ class AnkiConnect: model = self.collection().models.byName(modelName) if model is None: raise Exception('model was not found: {}'.format(modelName)) - ankiModel = [model] + ankiModel = [modelName] updatedModels = 0 for model in ankiModel: model = self.collection().models.byName(model)