Skip to content

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

:art: 支持间隔复习 https://github.com/siyuan-note/siyuan/issues/6710

Liang Dingbc1399462f26
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index 036f4b7218..3b4d20677c 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -22,6 +22,7 @@ import (
"path/filepath"
"strings"
"sync"
+ "time"
"github.com/88250/gulu"
"github.com/88250/lute"
@@ -331,6 +332,13 @@ func InitFlashcards() {
continue
}
+ if 0 == deck.Created {
+ deck.Created = time.Now().Unix()
+ }
+ if 0 == deck.Updated {
+ deck.Updated = time.Now().UnixMilli()
+ }
+
Decks[deckID] = deck
}
}