An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 支持间隔复习 https://github.com/siyuan-note/siyuan/issues/6710
Liang Dingedd90ce7cfb1
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.goindex 1a6d3059a6..21fd9cfb7d 100644--- a/kernel/model/flashcard.go+++ b/kernel/model/flashcard.go@@ -17,14 +17,16 @@package modelimport (- "github.com/88250/lute/ast"- "github.com/siyuan-note/logging"- "github.com/siyuan-note/riff"- "github.com/siyuan-note/siyuan/kernel/util"+ "github.com/88250/gulu""os""path/filepath""strings""sync"++ "github.com/88250/lute/ast"+ "github.com/siyuan-note/logging"+ "github.com/siyuan-note/riff"+ "github.com/siyuan-note/siyuan/kernel/util")var Decks = map[string]*riff.Deck{}@@ -47,6 +49,10 @@ func AddFlashcard(blockID string, deckName string) (err error) {func InitFlashcards() {riffSavePath := filepath.Join(util.DataDir, "storage", "riff")+ if !gulu.File.IsDir(riffSavePath) {+ return+ }+entries, err := os.ReadDir(riffSavePath)if nil != err {logging.LogErrorf("read riff dir failed: %s", err)