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

This commit is contained in:
Liang Ding 2023-05-12 20:35:55 +08:00
parent f006ab1dfb
commit aa289498c0
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

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