From d8ba9e1987c4ea82ba2fe9fa9536db9f114c907c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 1 Feb 2010 04:44:27 +0900 Subject: [PATCH] revert ease1 change suspicious of the previous change, I had a look at the example pascal and found the EF _was_ actually updated on a failure. The spec is misleading there. --- anki/deck.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/anki/deck.py b/anki/deck.py index f628a51ca..ff58f949a 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -519,10 +519,12 @@ where id != :id and factId = :factId""", if not card.reps: # card is new, inherit beginning factor card.factor = self.averageFactor - if ease == 2: - if card.successive and not self.cardIsBeingLearnt(card): + if card.successive and not self.cardIsBeingLearnt(card): + if ease == 1: + card.factor -= 0.20 + elif ease == 2: card.factor -= 0.15 - elif ease == 4: + if ease == 4: card.factor += 0.10 card.factor = max(1.3, card.factor)