From 9187255630ab2f2c1923615c9f01c6b86b86b372 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 15 Dec 2011 11:53:41 +0900 Subject: [PATCH] don't include (shared) in shared deck models --- anki/importing/anki2.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anki/importing/anki2.py b/anki/importing/anki2.py index a8ce4ecad..c48197db3 100644 --- a/anki/importing/anki2.py +++ b/anki/importing/anki2.py @@ -121,8 +121,9 @@ class Anki2Importer(Importer): # if we're importing with a prefix, make the model default to it if self.deckPrefix: src['did'] = self.dst.decks.current()['id'] - # and give it a unique name - src['name'] += " (%s)" % self.deckPrefix + # and give it a unique name if it's not a shared deck + if self.deckPrefix != "shared": + src['name'] += " (%s)" % self.deckPrefix # make sure to bump usn self.dst.models.save(src) self._modelMap[mid] = mid