From 97c33f14d963b42665e43acecfedf4cdc50875e8 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 16 Nov 2023 23:52:20 +0800 Subject: [PATCH] :art: Support resetting the learning progress of flashcards https://github.com/siyuan-note/siyuan/issues/9564 --- kernel/model/flashcard.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go index 7e6b695f2..240727ba0 100644 --- a/kernel/model/flashcard.go +++ b/kernel/model/flashcard.go @@ -43,6 +43,10 @@ func ResetFlashcards(typ, id, deckID string, blockIDs []string) { // Support resetting the learning progress of flashcards https://github.com/siyuan-note/siyuan/issues/9564 if 0 < len(blockIDs) { + if "" == deckID { + deckID = builtinDeckID + } + resetFlashcards(deckID, blockIDs) return }