From 9b2a19ee857108fa479367eda7d6e5a643ea5a99 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 17 Apr 2016 20:38:39 +1000 Subject: [PATCH] when schema differs, make sure we don't import cards _ignoredGuids should have been added to but wasn't --- anki/importing/anki2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/anki/importing/anki2.py b/anki/importing/anki2.py index e4cc5d112..3f2923c34 100644 --- a/anki/importing/anki2.py +++ b/anki/importing/anki2.py @@ -150,6 +150,7 @@ class Anki2Importer(Importer): # as the schemas differ and we already have a note with a different # note type, this note needs a new guid if not self.dupeOnSchemaChange: + self._ignoredGuids[origGuid] = True return False while True: note[GUID] = incGuid(note[GUID])