Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Unable to set Flashcard FSRS Weights https://github.com/siyuan-note/siyuan/issues/12453

Daniela8928326c7f5
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 3c3add304c..0134875edb 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -408,7 +408,7 @@ func InitConf() {
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, ",")) {
+ if "" == Conf.Flashcard.Weights {
Conf.Flashcard.Weights = conf.NewFlashcard().Weights
}