fix error when importing v2 apkg
https://anki.tenderapp.com/discussions/ankidesktop/42070-anki-closes-without-warning-when-importing-conflicting-shared-deck
This commit is contained in:
parent
1beed74464
commit
8bac28470f
@ -295,6 +295,7 @@ class Anki2Importer(Importer):
|
||||
|
||||
def _importCards(self) -> None:
|
||||
if self.mustResetLearning:
|
||||
self.src.modSchema(check=False)
|
||||
self.src.changeSchedulerVer(2)
|
||||
# build map of (guid, ord) -> cid and used id cache
|
||||
self._cards: Dict[Tuple[str, int], int] = {}
|
||||
|
Loading…
Reference in New Issue
Block a user