An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Distinguish between new cards and review cards during spaced repetition https://github.com/siyuan-note/siyuan/issues/9377
Daniel4dfa072278f0
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.goindex c8f60bc3d7..ce4217837a 100644--- a/kernel/model/flashcard.go+++ b/kernel/model/flashcard.go@@ -29,7 +29,6 @@ import ("github.com/88250/gulu""github.com/88250/lute/ast""github.com/88250/lute/parse"- "github.com/open-spaced-repetition/go-fsrs""github.com/siyuan-note/filelock""github.com/siyuan-note/logging""github.com/siyuan-note/riff"@@ -1020,17 +1019,18 @@ func getDeckDueCards(deck *riff.Deck, reviewedCardIDs, blockIDs []string, newCarcontinue}- fsrsCard := c.Impl().(*fsrs.Card)- if fsrs.New == fsrsCard.State {- newCount+++ if riff.New == c.GetState() {if newCount > newCardLimit {continue}++ newCount++} else {- reviewCount++if reviewCount > reviewCardLimit {continue}++ reviewCount++}if 0 < len(reviewedCardIDs) {