mirror of
https://github.com/ankitects/anki.git
synced 2025-12-24 12:22:56 -05:00
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:
parent
4f4a05e1ae
commit
5a5be92d09
1 changed files with 6 additions and 3 deletions
|
|
@ -649,7 +649,7 @@ did = ? and queue = 3 and due <= ? limit ?""",
|
||||||
lapse = card.type in (2,3)
|
lapse = card.type in (2,3)
|
||||||
|
|
||||||
if lapse:
|
if lapse:
|
||||||
self._rescheduleGraduatingLapse(card)
|
self._rescheduleGraduatingLapse(card, early)
|
||||||
else:
|
else:
|
||||||
self._rescheduleNew(card, conf, early)
|
self._rescheduleNew(card, conf, early)
|
||||||
|
|
||||||
|
|
@ -657,7 +657,9 @@ did = ? and queue = 3 and due <= ? limit ?""",
|
||||||
if card.odid:
|
if card.odid:
|
||||||
self._removeFromFiltered(card)
|
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.due = self.today+card.ivl
|
||||||
card.queue = 2
|
card.queue = 2
|
||||||
card.type = 2
|
card.type = 2
|
||||||
|
|
@ -686,7 +688,8 @@ did = ? and queue = 3 and due <= ? limit ?""",
|
||||||
|
|
||||||
def _graduatingIvl(self, card, conf, early, fuzz=True):
|
def _graduatingIvl(self, card, conf, early, fuzz=True):
|
||||||
if card.type in (2,3):
|
if card.type in (2,3):
|
||||||
return card.ivl
|
bonus = early and 1 or 0
|
||||||
|
return card.ivl + bonus
|
||||||
if not early:
|
if not early:
|
||||||
# graduate
|
# graduate
|
||||||
ideal = conf['ints'][0]
|
ideal = conf['ints'][0]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue