From 79ab33ee49c7a60aa5e21dcad8317eeedb8e9977 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 9 Dec 2019 12:12:29 +1000 Subject: [PATCH] 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 --- anki/schedv2.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/anki/schedv2.py b/anki/schedv2.py index e18f3cdc9..d95372a1e 100644 --- a/anki/schedv2.py +++ b/anki/schedv2.py @@ -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]