mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
ignore crom decks in didsForConf()
This commit is contained in:
parent
6096d39748
commit
f739d7ac38
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ class DeckManager(object):
|
|||
def didsForConf(self, conf):
|
||||
dids = []
|
||||
for deck in self.decks.values():
|
||||
if deck['conf'] == conf['id']:
|
||||
if 'conf' in deck and deck['conf'] == conf['id']:
|
||||
dids.append(deck['id'])
|
||||
return dids
|
||||
|
||||
|
|
Loading…
Reference in a new issue