🎨 Flashcard review interface adds card review times, state and other information https://github.com/siyuan-note/siyuan/issues/10505

This commit is contained in:
Daniel
2024-03-14 22:14:12 +08:00
parent 91ad199142
commit 6a6fdce3dd

View File

@@ -509,7 +509,7 @@ type Flashcard struct {
Lapses int `json:"lapses"`
Reps int `json:"reps"`
State riff.State `json:"state"`
LastReview time.Time `json:"lastReview"`
LastReview int64 `json:"lastReview"`
NextDues map[riff.Rating]string `json:"nextDues"`
}
@@ -526,7 +526,7 @@ func newFlashcard(card riff.Card, deckID string, now time.Time) *Flashcard {
Lapses: card.GetLapses(),
Reps: card.GetReps(),
State: card.GetState(),
LastReview: card.GetLastReview(),
LastReview: card.GetLastReview().UnixMilli(),
NextDues: nextDues,
}
}