🎨 Alt+0 flashcard review entry no longer returns to card deck flashcards Fix https://github.com/siyuan-note/siyuan/issues/10635

This commit is contained in:
Daniel 2024-03-17 22:45:32 +08:00
parent e6b708ea8a
commit a73fe74a2e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -702,6 +702,12 @@ func getDueFlashcards(deckID string, reviewedCardIDs []string) (ret []*Flashcard
func getAllDueFlashcards(reviewedCardIDs []string) (ret []*Flashcard, unreviewedCount, unreviewedNewCardCount, unreviewedOldCardCount int) {
now := time.Now()
for _, deck := range Decks {
if deck.ID != builtinDeckID {
// Alt+0 闪卡复习入口不再返回卡包闪卡
// Alt+0 flashcard review entry no longer returns to card deck flashcards https://github.com/siyuan-note/siyuan/issues/10635
continue
}
cards, unreviewedCnt, unreviewedNewCardCnt, unreviewedOldCardCnt := getDeckDueCards(deck, reviewedCardIDs, nil, Conf.Flashcard.NewCardLimit, Conf.Flashcard.ReviewCardLimit, Conf.Flashcard.ReviewMode)
unreviewedCount += unreviewedCnt
unreviewedNewCardCount += unreviewedNewCardCnt