Skip to content

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

:art: Support resetting the learning progress of flashcards https://github.com/siyuan-note/siyuan/issues/9564

Daniel97c33f14d963
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index 7e6b695f2a..240727ba0d 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
}