diff --git a/anki/importing/anki1.py b/anki/importing/anki1.py index 6a18a2323..9197dcce4 100644 --- a/anki/importing/anki1.py +++ b/anki/importing/anki1.py @@ -9,6 +9,8 @@ from anki.importing.anki2 import Anki2Importer class Anki1Importer(Anki2Importer): + dupeOnSchemaChange = True + def run(self): u = Upgrader() # check diff --git a/anki/importing/anki2.py b/anki/importing/anki2.py index 0f4f8d0a6..a2b03d363 100644 --- a/anki/importing/anki2.py +++ b/anki/importing/anki2.py @@ -17,6 +17,7 @@ class Anki2Importer(Importer): needMapper = False deckPrefix = None allowUpdate = True + dupeOnSchemaChange = False def run(self, media=None): self._prepareFiles() @@ -110,7 +111,7 @@ class Anki2Importer(Importer): srcMid = note[MID] dstMid = self._mid(srcMid) # duplicate schemas? - if srcMid == dstMid: + if srcMid == dstMid or not self.dupeOnSchemaChange: return origGuid not in self._notes # differing schemas note[MID] = dstMid