mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 07:46:09 +01:00
🎨 改进闪卡存储数据结构,支持一个块对应多张闪卡 https://github.com/siyuan-note/siyuan/issues/7417
This commit is contained in:
parent
127327060f
commit
5f875e9db2
1 changed files with 0 additions and 6 deletions
|
|
@ -314,7 +314,6 @@ func getDueFlashcards(deckID string) (ret []*Flashcard) {
|
|||
}
|
||||
|
||||
func getAllDueFlashcards() (ret []*Flashcard) {
|
||||
blockIDs := map[string]bool{}
|
||||
now := time.Now()
|
||||
for _, deck := range Decks {
|
||||
cards := deck.Dues()
|
||||
|
|
@ -324,10 +323,6 @@ func getAllDueFlashcards() (ret []*Flashcard) {
|
|||
continue
|
||||
}
|
||||
|
||||
if blockIDs[blockID] {
|
||||
continue
|
||||
}
|
||||
|
||||
nextDues := map[riff.Rating]string{}
|
||||
for rating, due := range card.NextDues() {
|
||||
nextDues[rating] = strings.TrimSpace(util.HumanizeRelTime(due, now, Conf.Lang))
|
||||
|
|
@ -339,7 +334,6 @@ func getAllDueFlashcards() (ret []*Flashcard) {
|
|||
BlockID: blockID,
|
||||
NextDues: nextDues,
|
||||
})
|
||||
blockIDs[blockID] = true
|
||||
}
|
||||
}
|
||||
if 1 > len(ret) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue