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

Danielc4174ea191c0
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index 1914591333..00d0c39aca 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -54,10 +54,10 @@ func ResetFlashcards(typ, id, deckID string, blockIDs []string) {
}
resetFlashcards(deckID, blockIDs)
}
- deckID = builtinDeckID
- } else {
- resetFlashcards(deckID, blockIDs)
+ return
}
+
+ resetFlashcards(deckID, blockIDs)
return
}