mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 00:50:56 +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()
|
cards := deck.Dues()
|
||||||
for _, card := range cards {
|
for _, card := range cards {
|
||||||
blockID := card.BlockID()
|
blockID := card.BlockID()
|
||||||
_, getErr := GetBlock(blockID)
|
|
||||||
if nil != getErr {
|
if nil == treenode.GetBlockTree(blockID) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
ret = append(ret, &Flashcard{
|
ret = append(ret, &Flashcard{
|
||||||
@ -109,8 +109,7 @@ func getAllDueFlashcards() (ret []*Flashcard, err error) {
|
|||||||
cards := deck.Dues()
|
cards := deck.Dues()
|
||||||
for _, card := range cards {
|
for _, card := range cards {
|
||||||
blockID := card.BlockID()
|
blockID := card.BlockID()
|
||||||
_, getErr := GetBlock(blockID)
|
if nil == treenode.GetBlockTree(blockID) {
|
||||||
if nil != getErr {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user