mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
This commit is contained in:
parent
28485f7ffb
commit
74b4385d37
3 changed files with 12 additions and 6 deletions
|
|
@ -86,6 +86,9 @@ func GetDueFlashcards(deckID string) (ret []string, err error) {
|
|||
}
|
||||
ret = append(ret, blockID)
|
||||
}
|
||||
if 1 > len(ret) {
|
||||
ret = []string{}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -108,6 +111,9 @@ func getAllDueFlashcards() (ret []string, err error) {
|
|||
blockIDs[blockID] = true
|
||||
}
|
||||
}
|
||||
if 1 > len(ret) {
|
||||
ret = []string{}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue