mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't include (shared) in shared deck models
This commit is contained in:
parent
19435068bb
commit
9187255630
1 changed files with 3 additions and 2 deletions
|
@ -121,7 +121,8 @@ class Anki2Importer(Importer):
|
||||||
# if we're importing with a prefix, make the model default to it
|
# if we're importing with a prefix, make the model default to it
|
||||||
if self.deckPrefix:
|
if self.deckPrefix:
|
||||||
src['did'] = self.dst.decks.current()['id']
|
src['did'] = self.dst.decks.current()['id']
|
||||||
# and give it a unique name
|
# and give it a unique name if it's not a shared deck
|
||||||
|
if self.deckPrefix != "shared":
|
||||||
src['name'] += " (%s)" % self.deckPrefix
|
src['name'] += " (%s)" % self.deckPrefix
|
||||||
# make sure to bump usn
|
# make sure to bump usn
|
||||||
self.dst.models.save(src)
|
self.dst.models.save(src)
|
||||||
|
|
Loading…
Reference in a new issue