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
b2a27bb54c
commit
6354d04e4b
10 changed files with 104 additions and 10 deletions
|
|
@ -350,6 +350,15 @@ func InitConf() {
|
|||
if 0 > Conf.Flashcard.ReviewCardLimit {
|
||||
Conf.Flashcard.ReviewCardLimit = 200
|
||||
}
|
||||
if 0 >= Conf.Flashcard.RequestRetention || 1 <= Conf.Flashcard.RequestRetention {
|
||||
Conf.Flashcard.RequestRetention = conf.NewFlashcard().RequestRetention
|
||||
}
|
||||
if 0 >= Conf.Flashcard.MaximumInterval || 36500 <= Conf.Flashcard.MaximumInterval {
|
||||
Conf.Flashcard.MaximumInterval = conf.NewFlashcard().MaximumInterval
|
||||
}
|
||||
if "" == Conf.Flashcard.Weights || 17 != len(strings.Split(Conf.Flashcard.Weights, ",")) {
|
||||
Conf.Flashcard.Weights = conf.NewFlashcard().Weights
|
||||
}
|
||||
|
||||
if nil == Conf.AI {
|
||||
Conf.AI = conf.NewAI()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue