fix parent limits on review screen counts

This commit is contained in:
Damien Elmes 2012-01-23 22:10:03 +09:00
parent 245d844616
commit d9a19f3e5e
2 changed files with 4 additions and 0 deletions

View file

@ -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)

View file

@ -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: