Browse Source

:art: Flashcards in closed notebooks are no longer counted when spaced repeat Fix https://github.com/siyuan-note/siyuan/issues/8240

Liang Ding 2 years ago
parent
commit
aa289498c0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      kernel/treenode/blocktree.go

+ 2 - 2
kernel/treenode/blocktree.go

@@ -234,7 +234,7 @@ func RemoveBlockTreesByPathPrefix(pathPrefix string) {
 		slice.m.Lock()
 		slice.m.Lock()
 		for _, b := range slice.data {
 		for _, b := range slice.data {
 			if strings.HasPrefix(b.Path, pathPrefix) {
 			if strings.HasPrefix(b.Path, pathPrefix) {
-				ids = append(ids, b.RootID)
+				ids = append(ids, b.ID)
 			}
 			}
 		}
 		}
 		slice.m.Unlock()
 		slice.m.Unlock()
@@ -276,7 +276,7 @@ func RemoveBlockTreesByBoxID(boxID string) (ids []string) {
 		slice.m.Lock()
 		slice.m.Lock()
 		for _, b := range slice.data {
 		for _, b := range slice.data {
 			if b.BoxID == boxID {
 			if b.BoxID == boxID {
-				ids = append(ids, b.RootID)
+				ids = append(ids, b.ID)
 			}
 			}
 		}
 		}
 		slice.m.Unlock()
 		slice.m.Unlock()