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

This commit is contained in:
Daniel 2023-11-16 23:52:20 +08:00
parent 259606e995
commit 97c33f14d9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}