mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 23:50:13 +01:00
🎨 When the current spaced repetition is completed, supports choose whether to continue https://github.com/siyuan-note/siyuan/issues/7943
This commit is contained in:
parent
8224303021
commit
fbf6b84a91
1 changed files with 3 additions and 3 deletions
|
|
@ -320,7 +320,7 @@ func GetNotebookDueFlashcards(boxID string, reviewedCardIDs []string) (ret []*Fl
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
cards, unreviewdCnt := getDeckDueCards(deck, reviewedCardIDs, treeBlockIDs)
|
cards, unreviewedCnt := getDeckDueCards(deck, reviewedCardIDs, treeBlockIDs)
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
for _, card := range cards {
|
for _, card := range cards {
|
||||||
blockID := card.BlockID()
|
blockID := card.BlockID()
|
||||||
|
|
@ -329,7 +329,7 @@ func GetNotebookDueFlashcards(boxID string, reviewedCardIDs []string) (ret []*Fl
|
||||||
if 1 > len(ret) {
|
if 1 > len(ret) {
|
||||||
ret = []*Flashcard{}
|
ret = []*Flashcard{}
|
||||||
}
|
}
|
||||||
unreviewedCount = unreviewdCnt
|
unreviewedCount = unreviewedCnt
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -444,6 +444,7 @@ func getAllDueFlashcards(reviewedCardIDs []string) (ret []*Flashcard, unreviewed
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
for _, deck := range Decks {
|
for _, deck := range Decks {
|
||||||
cards, unreviewedCnt := getDeckDueCards(deck, reviewedCardIDs, nil)
|
cards, unreviewedCnt := getDeckDueCards(deck, reviewedCardIDs, nil)
|
||||||
|
unreviewedCount += unreviewedCnt
|
||||||
for _, card := range cards {
|
for _, card := range cards {
|
||||||
blockID := card.BlockID()
|
blockID := card.BlockID()
|
||||||
if nil == treenode.GetBlockTree(blockID) {
|
if nil == treenode.GetBlockTree(blockID) {
|
||||||
|
|
@ -451,7 +452,6 @@ func getAllDueFlashcards(reviewedCardIDs []string) (ret []*Flashcard, unreviewed
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = append(ret, newFlashcard(card, blockID, deck.ID, now))
|
ret = append(ret, newFlashcard(card, blockID, deck.ID, now))
|
||||||
unreviewedCount += unreviewedCnt
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if 1 > len(ret) {
|
if 1 > len(ret) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue