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

This commit is contained in:
Vanessa 2023-03-24 10:02:06 +08:00
commit f9ead1db1e
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
}