Skip to content

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

:art: Show count in spaced repetition tree filter floating window https://github.com/siyuan-note/siyuan/issues/8202

Liang Ding5abfec77b97c
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index e0919b3e8c..3542d9dd0c 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -402,6 +402,7 @@ func GetTreeDueFlashcards(rootID string, reviewedCardIDs []string) (ret []*Flash
}
func getTreeSubTreeChildBlocks(rootID string) (treeBlockIDsMap map[string]bool, treeBlockIDs []string) {
+ treeBlockIDsMap = map[string]bool{}
root := treenode.GetBlockTree(rootID)
if nil == root {
return