From 862d0db037bc385538e7ee3d81acb2f47486ef1d Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 14 Apr 2023 16:36:04 +0800 Subject: [PATCH] :art: Spaced repetition interface supports review by document selection https://github.com/siyuan-note/siyuan/issues/7954 --- kernel/model/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index 50c08ce8a..5f6d1d718 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()