mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Support resetting the learning progress of flashcards https://github.com/siyuan-note/siyuan/issues/9564
This commit is contained in:
parent
259606e995
commit
97c33f14d9
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
// Support resetting the learning progress of flashcards https://github.com/siyuan-note/siyuan/issues/9564
|
||||||
|
|
||||||
if 0 < len(blockIDs) {
|
if 0 < len(blockIDs) {
|
||||||
|
if "" == deckID {
|
||||||
|
deckID = builtinDeckID
|
||||||
|
}
|
||||||
|
|
||||||
resetFlashcards(deckID, blockIDs)
|
resetFlashcards(deckID, blockIDs)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue