Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Daniel6a6fdce3dd47
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index e832048446..34f52ab1d5 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -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,
}
}