when schema differs, make sure we don't import cards

_ignoredGuids should have been added to but wasn't
This commit is contained in:
Damien Elmes 2016-04-17 20:38:39 +10:00
parent 9f4fd8a9b6
commit 9b2a19ee85

View File

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