mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
automatically fix missing parent decks
This commit is contained in:
parent
d5e43b364c
commit
7dd271a99c
1 changed files with 4 additions and 0 deletions
|
@ -209,6 +209,10 @@ order by due""" % self._deckLimit(),
|
|||
# new
|
||||
nlim = self._deckNewLimitSingle(deck)
|
||||
if p:
|
||||
# if parent was missing, add and restart
|
||||
if p not in lims:
|
||||
self.col.decks.id(p)
|
||||
return self.deckDueList()
|
||||
nlim = min(nlim, lims[p][0])
|
||||
new = self._newForDeck(deck['id'], nlim)
|
||||
# learning
|
||||
|
|
Loading…
Reference in a new issue