Rating
: int
in package
The four FSRS review grades.
Values match Anki's revlog.ease so a review can be exported to an .apkg
without translation (issue #228).
Table of Contents
Cases
Methods
- fromBinary() : self
- Map LWT's legacy binary answer onto a grade.
- isRecall() : bool
- Whether this grade counts as a successful recall.
- legacyStatusChange() : int
- Legacy status nudge for this grade (+1 / -1).
Cases
Again
Hard
Good
Easy
Methods
fromBinary()
Map LWT's legacy binary answer onto a grade.
public
static fromBinary(bool $correct) : self
The old review UI only distinguished "I knew it" from "I didn't", which is exactly Again/Good. Hard and Easy carry information the binary UI never collected, so they are only ever produced by the graded endpoint.
Parameters
- $correct : bool
-
Whether the user recalled the term
Return values
selfisRecall()
Whether this grade counts as a successful recall.
public
isRecall() : bool
Return values
boollegacyStatusChange()
Legacy status nudge for this grade (+1 / -1).
public
legacyStatusChange() : int
Phase 2a keeps WoStatus moving exactly as it did before, so the reading view is unchanged whether a review arrives through the binary or the graded endpoint.