This commit is contained in:
Liang Ding 2022-12-22 14:48:20 +08:00
parent 28485f7ffb
commit 74b4385d37
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 12 additions and 6 deletions

View file

@ -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
}