mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 06:37:12 -05:00
when importing, set the new group as current
This commit is contained in:
parent
cbdb283b20
commit
688a680b54
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ class Anki2Importer(Importer):
|
|||
|
||||
def _import(self):
|
||||
self._groups = {}
|
||||
if self.groupPrefix:
|
||||
id = self.dst.groups.id(self.groupPrefix)
|
||||
self.dst.groups.select(id)
|
||||
self._prepareTS()
|
||||
self._prepareModels()
|
||||
self._importFacts()
|
||||
|
|
|
|||
Loading…
Reference in a new issue