mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
account for case differences when recovering from missing parents
This commit is contained in:
parent
7dd271a99c
commit
dd467cd413
1 changed files with 2 additions and 1 deletions
|
@ -211,7 +211,8 @@ order by due""" % self._deckLimit(),
|
|||
if p:
|
||||
# if parent was missing, add and restart
|
||||
if p not in lims:
|
||||
self.col.decks.id(p)
|
||||
deck['name'] = self.col.decks._ensureParents(deck['name'])
|
||||
self.col.decks.save(deck)
|
||||
return self.deckDueList()
|
||||
nlim = min(nlim, lims[p][0])
|
||||
new = self._newForDeck(deck['id'], nlim)
|
||||
|
|
Loading…
Reference in a new issue