This commit is contained in:
Liang Ding 2022-12-29 23:15:08 +08:00
parent 51b4f68035
commit 0f6915802a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 19 additions and 5 deletions

View file

@ -77,6 +77,15 @@ func GetFlashcards(deckID string, page int) (blocks []*Block, total, pageCount i
blocks = []*Block{}
return
}
for i, b := range blocks {
if nil == b {
blocks[i] = &Block{
ID: blockIDs[i],
Content: Conf.Language(180),
}
}
}
return
}