mirror of
https://github.com/ankitects/anki.git
synced 2025-12-31 07:43:02 -05:00
when estimating interval, return ideal, not adjusted
This commit is contained in:
parent
00becd01eb
commit
0448175d10
1 changed files with 7 additions and 4 deletions
|
|
@ -419,7 +419,7 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
|
||||||
def _startingLeft(self, card):
|
def _startingLeft(self, card):
|
||||||
return len(self._cardConf(card)['new']['delays'])
|
return len(self._cardConf(card)['new']['delays'])
|
||||||
|
|
||||||
def _graduatingIvl(self, card, conf, early):
|
def _graduatingIvl(self, card, conf, early, adj=True):
|
||||||
if card.type == 2:
|
if card.type == 2:
|
||||||
# lapsed card being relearnt
|
# lapsed card being relearnt
|
||||||
return card.ivl
|
return card.ivl
|
||||||
|
|
@ -429,7 +429,10 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
|
||||||
else:
|
else:
|
||||||
# early remove
|
# early remove
|
||||||
ideal = conf['ints'][1]
|
ideal = conf['ints'][1]
|
||||||
return self._adjRevIvl(card, ideal)
|
if adj:
|
||||||
|
return self._adjRevIvl(card, ideal)
|
||||||
|
else:
|
||||||
|
return ideal
|
||||||
|
|
||||||
def _rescheduleNew(self, card, conf, early):
|
def _rescheduleNew(self, card, conf, early):
|
||||||
card.ivl = self._graduatingIvl(card, conf, early)
|
card.ivl = self._graduatingIvl(card, conf, early)
|
||||||
|
|
@ -781,12 +784,12 @@ your short-term review workload will become."""))
|
||||||
return self._delayForGrade(conf, len(conf['delays']))
|
return self._delayForGrade(conf, len(conf['delays']))
|
||||||
elif ease == 3:
|
elif ease == 3:
|
||||||
# early removal
|
# early removal
|
||||||
return self._graduatingIvl(card, conf, True) * 86400
|
return self._graduatingIvl(card, conf, True, adj=False) * 86400
|
||||||
else:
|
else:
|
||||||
left = card.left - 1
|
left = card.left - 1
|
||||||
if left <= 0:
|
if left <= 0:
|
||||||
# graduate
|
# graduate
|
||||||
return self._graduatingIvl(card, conf, False) * 86400
|
return self._graduatingIvl(card, conf, False, adj=False) * 86400
|
||||||
else:
|
else:
|
||||||
return self._delayForGrade(conf, left)
|
return self._delayForGrade(conf, left)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue