mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue