Skip to content

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

:art: 支持配置闪卡 https://github.com/siyuan-note/siyuan/issues/7704 https://github.com/siyuan-note/siyuan/issues/7695 https://github.com/siyuan-note/siyuan/issues/7703 https://github.com/siyuan-note/siyuan/issues/7701 https://github.com/siyuan-note/siyuan/issues/7702 https://github.com/siyuan-note/siyuan/issues/7724

Liang Dinge83b41786aa0
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 5a238ce0ce..64e86ca212 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -318,6 +318,12 @@ func InitConf() {
if nil == Conf.Flashcard {
Conf.Flashcard = conf.NewFlashcard()
}
+ if 1 > Conf.Flashcard.DailyNewCardLimit {
+ Conf.Flashcard.DailyNewCardLimit = 20
+ }
+ if 1 > Conf.Flashcard.DailyReviewCardLimit {
+ Conf.Flashcard.DailyReviewCardLimit = 200
+ }
if nil == Conf.AI {
Conf.AI = conf.NewAI()