mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🎨 Apply result optimized by FSRS optimizer https://github.com/siyuan-note/siyuan/issues/9309
This commit is contained in:
parent
6354d04e4b
commit
172b7ed018
4 changed files with 7 additions and 9 deletions
|
|
@ -717,7 +717,7 @@ func LoadFlashcards() {
|
|||
name := entry.Name()
|
||||
if strings.HasSuffix(name, ".deck") {
|
||||
deckID := strings.TrimSuffix(name, ".deck")
|
||||
deck, loadErr := riff.LoadDeck(riffSavePath, deckID)
|
||||
deck, loadErr := riff.LoadDeck(riffSavePath, deckID, Conf.Flashcard.RequestRetention, Conf.Flashcard.MaximumInterval, Conf.Flashcard.Weights)
|
||||
if nil != loadErr {
|
||||
logging.LogErrorf("load deck [%s] failed: %s", name, loadErr)
|
||||
continue
|
||||
|
|
@ -794,7 +794,7 @@ func createDeck(name string) (deck *riff.Deck, err error) {
|
|||
|
||||
func createDeck0(name string, deckID string) (deck *riff.Deck, err error) {
|
||||
riffSavePath := getRiffDir()
|
||||
deck, err = riff.LoadDeck(riffSavePath, deckID)
|
||||
deck, err = riff.LoadDeck(riffSavePath, deckID, Conf.Flashcard.RequestRetention, Conf.Flashcard.MaximumInterval, Conf.Flashcard.Weights)
|
||||
if nil != err {
|
||||
logging.LogErrorf("load deck [%s] failed: %s", deckID, err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue