add a token 1 day bonus so easy on a relearn card differs from good

https://anki.tenderapp.com/discussions/beta-testing/1589-anki-2116-beta#comment_47905454
This commit is contained in:
Damien Elmes 2019-12-09 12:12:29 +10:00
parent 4f4a05e1ae
commit 5a5be92d09

View file

@ -649,7 +649,7 @@ did = ? and queue = 3 and due <= ? limit ?""",
lapse = card.type in (2,3)
if lapse:
self._rescheduleGraduatingLapse(card)
self._rescheduleGraduatingLapse(card, early)
else:
self._rescheduleNew(card, conf, early)
@ -657,7 +657,9 @@ did = ? and queue = 3 and due <= ? limit ?""",
if card.odid:
self._removeFromFiltered(card)
def _rescheduleGraduatingLapse(self, card):
def _rescheduleGraduatingLapse(self, card, early=False):
if early:
card.ivl += 1
card.due = self.today+card.ivl
card.queue = 2
card.type = 2
@ -686,7 +688,8 @@ did = ? and queue = 3 and due <= ? limit ?""",
def _graduatingIvl(self, card, conf, early, fuzz=True):
if card.type in (2,3):
return card.ivl
bonus = early and 1 or 0
return card.ivl + bonus
if not early:
# graduate
ideal = conf['ints'][0]