mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05: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,6 +235,7 @@ order by due""" % self._deckLimit(),
|
||||||
new += ch[3]
|
new += ch[3]
|
||||||
# limit the counts to the deck's limits
|
# limit the counts to the deck's limits
|
||||||
conf = self.col.decks.confForDid(did)
|
conf = self.col.decks.confForDid(did)
|
||||||
|
if not conf['dyn']:
|
||||||
rev = min(rev, conf['rev']['perDay'])
|
rev = min(rev, conf['rev']['perDay'])
|
||||||
new = min(new, conf['new']['perDay'])
|
new = min(new, conf['new']['perDay'])
|
||||||
tree.append((head, did, rev, new, children))
|
tree.append((head, did, rev, new, children))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue