mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
ignore cram decks when deleting options groups
This commit is contained in:
parent
d429519929
commit
2ad98f063a
1 changed files with 3 additions and 0 deletions
|
@ -287,6 +287,9 @@ class DeckManager(object):
|
|||
self.col.modSchema()
|
||||
del self.dconf[str(id)]
|
||||
for g in self.all():
|
||||
# ignore cram decks
|
||||
if 'conf' not in g:
|
||||
continue
|
||||
if str(g['conf']) == str(id):
|
||||
g['conf'] = 1
|
||||
self.save(g)
|
||||
|
|
Loading…
Reference in a new issue