mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Show card NextDue to the flashcard management UI https://github.com/siyuan-note/siyuan/pull/9621
This commit is contained in:
parent
04bb9642f3
commit
cb45da4319
2 changed files with 8 additions and 3 deletions
|
|
@ -70,9 +70,14 @@ type RiffCard struct {
|
|||
Reps uint64 `json:"reps"`
|
||||
}
|
||||
|
||||
func GetRiffCard(card *fsrs.Card) *RiffCard {
|
||||
func getRiffCard(card *fsrs.Card) *RiffCard {
|
||||
due := card.Due
|
||||
if due.IsZero() {
|
||||
due = time.Now()
|
||||
}
|
||||
|
||||
return &RiffCard{
|
||||
Due: card.Due,
|
||||
Due: due,
|
||||
Reps: card.Reps,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue