mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Flashcard review interface adds card review times, state and other information https://github.com/siyuan-note/siyuan/issues/10505
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user