Skip to content

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

:art: Distinguish between new cards and review cards during spaced repetition https://github.com/siyuan-note/siyuan/issues/9377

Danielfcd59dffee07
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index ce4217837a..437abfcc9f 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -1020,13 +1020,13 @@ func getDeckDueCards(deck *riff.Deck, reviewedCardIDs, blockIDs []string, newCar
}
if riff.New == c.GetState() {
- if newCount > newCardLimit {
+ if newCount >= newCardLimit {
continue
}
newCount++
} else {
- if reviewCount > reviewCardLimit {
+ if reviewCount >= reviewCardLimit {
continue
}