Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-12-22 20:00:34 +08:00
commit 501f86c5e2

View file

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