mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
new/rev limits in tree shouldn't be applied for dyn decks
This commit is contained in:
parent
5019e46fbf
commit
d5dbfa3243
1 changed files with 3 additions and 2 deletions
|
@ -235,8 +235,9 @@ order by due""" % self._deckLimit(),
|
|||
new += ch[3]
|
||||
# limit the counts to the deck's limits
|
||||
conf = self.col.decks.confForDid(did)
|
||||
rev = min(rev, conf['rev']['perDay'])
|
||||
new = min(new, conf['new']['perDay'])
|
||||
if not conf['dyn']:
|
||||
rev = min(rev, conf['rev']['perDay'])
|
||||
new = min(new, conf['new']['perDay'])
|
||||
tree.append((head, did, rev, new, children))
|
||||
return tuple(tree)
|
||||
|
||||
|
|
Loading…
Reference in a new issue