Skip to content

Commit

Permalink
Add missing difficulty adjusment
Browse files Browse the repository at this point in the history
  • Loading branch information
brainwo committed Aug 29, 2024
1 parent cd1a895 commit 58c4f78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/fsrs_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ class FSRS {
double retrievability,
State state,
) {
s.again.difficulty = _nextDifficulty(lastD, Rating.again);
s.hard.difficulty = _nextDifficulty(lastD, Rating.hard);
s.good.difficulty = _nextDifficulty(lastD, Rating.good);
s.easy.difficulty = _nextDifficulty(lastD, Rating.easy);

switch (state) {
case State.learning:
case State.relearning:
Expand Down

0 comments on commit 58c4f78

Please sign in to comment.