Explorar el Código

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

Daniel hace 1 año
padre
commit
fcd59dffee
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      kernel/model/flashcard.go

+ 2 - 2
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
 			}