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.
This commit is contained in:
Damien Elmes 2010-02-01 04:44:27 +09:00
parent 095ac330b5
commit d8ba9e1987

View file

@ -519,10 +519,12 @@ where id != :id and factId = :factId""",
if not card.reps: if not card.reps:
# card is new, inherit beginning factor # card is new, inherit beginning factor
card.factor = self.averageFactor 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 card.factor -= 0.15
elif ease == 4: if ease == 4:
card.factor += 0.10 card.factor += 0.10
card.factor = max(1.3, card.factor) card.factor = max(1.3, card.factor)