mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
🎨 Show count in spaced repetition tree filter floating window https://github.com/siyuan-note/siyuan/issues/8202
This commit is contained in:
parent
97c4e84bc4
commit
8abc00f7f9
1 changed files with 4 additions and 4 deletions
|
|
@ -59,8 +59,8 @@ func GetFlashcardNotebooks() (ret []*Box) {
|
|||
|
||||
func countTreeFlashcard(rootID string, deck *riff.Deck, deckBlockIDs []string) (newFlashcardCount, dueFlashcardCount, flashcardCount int) {
|
||||
blockIDs := getTreeSubTreeChildBlocks(rootID)
|
||||
for _, blockID := range deckBlockIDs {
|
||||
if gulu.Str.Contains(blockID, blockIDs) {
|
||||
for _, deckBlockID := range deckBlockIDs {
|
||||
if gulu.Str.Contains(deckBlockID, blockIDs) {
|
||||
flashcardCount++
|
||||
}
|
||||
}
|
||||
|
|
@ -77,8 +77,8 @@ func countTreeFlashcard(rootID string, deck *riff.Deck, deckBlockIDs []string) (
|
|||
|
||||
func countBoxFlashcard(boxID string, deck *riff.Deck, deckBlockIDs []string) (newFlashcardCount, dueFlashcardCount, flashcardCount int) {
|
||||
blockIDs := getBoxBlocks(boxID)
|
||||
for _, blockID := range deckBlockIDs {
|
||||
if gulu.Str.Contains(blockID, blockIDs) {
|
||||
for _, deckBlockID := range deckBlockIDs {
|
||||
if gulu.Str.Contains(deckBlockID, blockIDs) {
|
||||
flashcardCount++
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue