mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-15 16:41:07 +08:00
This commit is contained in:
parent
591ca63466
commit
02d3a3a12b
@ -88,8 +88,8 @@ func GetDueFlashcards(deckID string) (ret []*Flashcard, err error) {
|
||||
cards := deck.Dues()
|
||||
for _, card := range cards {
|
||||
blockID := card.BlockID()
|
||||
_, getErr := GetBlock(blockID)
|
||||
if nil != getErr {
|
||||
|
||||
if nil == treenode.GetBlockTree(blockID) {
|
||||
continue
|
||||
}
|
||||
ret = append(ret, &Flashcard{
|
||||
@ -109,8 +109,7 @@ func getAllDueFlashcards() (ret []*Flashcard, err error) {
|
||||
cards := deck.Dues()
|
||||
for _, card := range cards {
|
||||
blockID := card.BlockID()
|
||||
_, getErr := GetBlock(blockID)
|
||||
if nil != getErr {
|
||||
if nil == treenode.GetBlockTree(blockID) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user