mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
add the ability to create a new deck conf from existing one
This commit is contained in:
parent
20ffbd57a7
commit
46443762c0
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue