mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix parent limits on review screen counts
This commit is contained in:
parent
245d844616
commit
d9a19f3e5e
2 changed files with 4 additions and 0 deletions
|
@ -312,6 +312,8 @@ class DeckManager(object):
|
|||
|
||||
def select(self, did):
|
||||
"Select a new branch."
|
||||
# make sure arg is an int
|
||||
did = int(did)
|
||||
# current deck
|
||||
self.col.conf['curDeck'] = did
|
||||
# and active decks (current + all children)
|
||||
|
|
|
@ -124,6 +124,8 @@ order by due""" % self._deckLimit(),
|
|||
pcounts = {}
|
||||
# for each of the active decks
|
||||
for did in self.col.decks.active():
|
||||
# early alphas were setting the active ids as a str
|
||||
did = int(did)
|
||||
# get the individual deck's limit
|
||||
lim = limFn(self.col.decks.get(did))
|
||||
if not lim:
|
||||
|
|
Loading…
Reference in a new issue