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/7057

Liang Ding8ab870b9c5db
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index 2cea61fa76..481e4f2f85 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -70,7 +70,7 @@ func GetTreeFlashcards(rootID string, page int) (blocks []*Block, total, pageCou
treeBlockIDs := map[string]bool{}
for _, t := range trees {
ast.Walk(t.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
- if !entering || !n.IsBlock() {
+ if !entering || !n.IsBlock() || ast.NodeDocument == n.Type {
return ast.WalkContinue
}