mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -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):
|
def select(self, did):
|
||||||
"Select a new branch."
|
"Select a new branch."
|
||||||
|
# make sure arg is an int
|
||||||
|
did = int(did)
|
||||||
# current deck
|
# current deck
|
||||||
self.col.conf['curDeck'] = did
|
self.col.conf['curDeck'] = did
|
||||||
# and active decks (current + all children)
|
# and active decks (current + all children)
|
||||||
|
|
|
@ -124,6 +124,8 @@ order by due""" % self._deckLimit(),
|
||||||
pcounts = {}
|
pcounts = {}
|
||||||
# for each of the active decks
|
# for each of the active decks
|
||||||
for did in self.col.decks.active():
|
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
|
# get the individual deck's limit
|
||||||
lim = limFn(self.col.decks.get(did))
|
lim = limFn(self.col.decks.get(did))
|
||||||
if not lim:
|
if not lim:
|
||||||
|
|
Loading…
Reference in a new issue