Merge pull request #363 from ig3/bug/new-perday
Use _deckNewLimitSingle in _groupChildrenMain
This commit is contained in:
commit
f0f9278414
@ -293,7 +293,7 @@ order by due""" % self._deckLimit(),
|
||||
deck = self.col.decks.get(did)
|
||||
if not conf['dyn']:
|
||||
rev = max(0, min(rev, conf['rev']['perDay']-deck['revToday'][1]))
|
||||
new = max(0, min(new, conf['new']['perDay']-deck['newToday'][1]))
|
||||
new = max(0, min(new, self._deckNewLimitSingle(deck)))
|
||||
tree.append((head, did, rev, lrn, new, children))
|
||||
return tuple(tree)
|
||||
|
||||
|
@ -294,7 +294,7 @@ order by due""" % self._deckLimit(),
|
||||
conf = self.col.decks.confForDid(did)
|
||||
deck = self.col.decks.get(did)
|
||||
if not conf['dyn']:
|
||||
new = max(0, min(new, conf['new']['perDay']-deck['newToday'][1]))
|
||||
new = max(0, min(new, self._deckNewLimitSingle(deck)))
|
||||
tree.append((head, did, rev, lrn, new, children))
|
||||
return tuple(tree)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user