From 46443762c08fc0a992064e1720e1242a0c913168 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 10 Dec 2011 00:47:04 +0900 Subject: [PATCH] add the ability to create a new deck conf from existing one --- anki/decks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/decks.py b/anki/decks.py index 831dcf9dd..cb695263f 100644 --- a/anki/decks.py +++ b/anki/decks.py @@ -193,9 +193,9 @@ class DeckManager(object): self.dconf[str(g['id'])] = g self.save() - def confId(self, name): + def confId(self, name, cloneFrom=defaultConf): "Create a new configuration and return id." - c = copy.deepcopy(defaultConf) + c = copy.deepcopy(cloneFrom) while 1: id = intTime(1000) if str(id) not in self.dconf: