What should I use instead of 'repeat' method in newest version? #102
-
|
Hi, I've been working on my own flashcard app. Until today, I was using py-fsrs 3.1, but I wanted to implement the Optimizer, so I updated to the latest version. Previously, I was using the following code to get the intervals for each rating, so I could display them above the buttons—similar to how it's done in Anki: However, it seems that the FSRS class has been replaced by Scheduler, and the repeat method is no longer available. How can I achieve the same effect in the latest version? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
We replaced the But, for your case specifically, I believe you'd just call |
Beta Was this translation helpful? Give feedback.
@Ravdar
We replaced the
repeatmethod with thereview_cardmethod in version4.0.0. You can view the release notes here. Furthermore, I'd recommend skimming the Quickstart in the README so see an example of how to use thereview_cardmethod.But, for your case specifically, I believe you'd just call
review_cardfour times - once for each rating to compute your intervals.