Skip to content

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

:art: Spaced repetition interface supports review by document selection https://github.com/siyuan-note/siyuan/issues/7954

Liang Ding862d0db037bc
diff --git a/kernel/model/file.go b/kernel/model/file.go
index 50c08ce8a0..5f6d1d7189 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -147,7 +147,7 @@ func SearchDocsByKeyword(keyword string, flashcard bool) (ret []map[string]strin
var deckBlockIDs []string
if flashcard {
deck := Decks[builtinDeckID]
- if nil != deck {
+ if nil == deck {
return
}
deckBlockIDs = deck.GetBlockIDs()
@@ -232,7 +232,7 @@ func ListDocTree(boxID, path string, sortMode int, flashcard bool, maxListCount
var deckBlockIDs []string
if flashcard {
deck := Decks[builtinDeckID]
- if nil != deck {
+ if nil == deck {
return
}
deckBlockIDs = deck.GetBlockIDs()