🎨 闪卡管理添加复习次数、卡片总数及路径优化 https://github.com/siyuan-note/siyuan/issues/7761

This commit is contained in:
Liang Ding 2023-03-24 10:01:36 +08:00
parent f1db1643e0
commit ee1dd4e1cb
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 3 additions and 1 deletions

View file

@ -61,7 +61,8 @@ type Block struct {
Created string `json:"created"`
Updated string `json:"updated"`
RiffCardID string `json:"riffCardID"`
RiffCardID string `json:"riffCardID"`
RiffCardReps uint64 `json:"riffCardReps"`
}
func (block *Block) IsContainerBlock() bool {

View file

@ -178,6 +178,7 @@ func getCardsBlocks(cards []riff.Card, page int) (blocks []*Block, total, pageCo
}
b.RiffCardID = cards[i].ID()
b.RiffCardReps = cards[i].(*riff.FSRSCard).C.Reps
}
return
}