mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
when upgrading decks from anki1, make sure we preserve the provided prefix
This commit is contained in:
parent
8823fe7538
commit
c9978d68b5
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,8 @@ class Anki2Importer(Importer):
|
|||
self.dst.db.execute("analyze")
|
||||
|
||||
def _prepareDeckPrefix(self):
|
||||
if self.deckPrefix:
|
||||
return runFilter("prepareImportPrefix", self.deckPrefix)
|
||||
prefix = None
|
||||
for deck in self.src.decks.all():
|
||||
if str(deck['id']) == "1":
|
||||
|
|
Loading…
Reference in a new issue