🎨 Add kernel API /api/riff/getRiffCardsByBlockIDs Fix https://github.com/siyuan-note/siyuan/issues/10535

This commit is contained in:
Daniel 2024-03-07 20:36:47 +08:00
parent d55dcf1bf7
commit e083dacca8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 54 additions and 4 deletions

View file

@ -67,8 +67,11 @@ type Block struct {
}
type RiffCard struct {
Due time.Time `json:"due"`
Reps uint64 `json:"reps"`
Due time.Time `json:"due"`
Reps uint64 `json:"reps"`
Lapses uint64 `json:"lapses"`
State fsrs.State `json:"state"`
LastReview time.Time `json:"lastReview"`
}
func getRiffCard(card *fsrs.Card) *RiffCard {
@ -78,8 +81,11 @@ func getRiffCard(card *fsrs.Card) *RiffCard {
}
return &RiffCard{
Due: due,
Reps: card.Reps,
Due: due,
Reps: card.Reps,
Lapses: card.Lapses,
State: card.State,
LastReview: card.LastReview,
}
}