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

Danielf78c5ab3c872
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index 00d0c39aca..9cc7a7f608 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -52,6 +52,9 @@ func ResetFlashcards(typ, id, deckID string, blockIDs []string) {
break
}
}
+ if "" == deckID {
+ continue
+ }
resetFlashcards(deckID, blockIDs)
}
return