Fix api method findAndReplaceInModels

I think this was a typo?
This commit is contained in:
oakkitten 2022-03-30 19:34:58 +01:00
parent baed642489
commit eac658716a

View File

@ -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)