ignore delay in hard case
https://anki.tenderapp.com/discussions/ankidesktop/27627-request-allow-setting-maximum-delay-for-interval-calculation-in-overdue-cards
This commit is contained in:
parent
99c50f1a93
commit
01c58cfd85
@ -896,7 +896,7 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)"""
|
||||
delay = self._daysLate(card)
|
||||
conf = self._revConf(card)
|
||||
fct = card.factor / 1000
|
||||
ivl2 = self._constrainedIvl((card.ivl + delay // 4) * 1.2, conf, card.ivl, fuzz)
|
||||
ivl2 = self._constrainedIvl(card.ivl * 1.2, conf, card.ivl, fuzz)
|
||||
if ease == 2:
|
||||
return ivl2
|
||||
|
||||
|
@ -325,8 +325,8 @@ def test_reviews():
|
||||
d.reset()
|
||||
d.sched.answerCard(c, 2)
|
||||
assert c.queue == 2
|
||||
# the new interval should be (100 + 8/4) * 1.2 = 122
|
||||
assert checkRevIvl(d, c, 122)
|
||||
# the new interval should be (100) * 1.2 = 120
|
||||
assert checkRevIvl(d, c, 120)
|
||||
assert c.due == d.sched.today + c.ivl
|
||||
# factor should have been decremented
|
||||
assert c.factor == 2350
|
||||
|
Loading…
Reference in New Issue
Block a user