From f163fbb6690de35e3afd8fd60e9f5facebfe2ce5 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 9 Mar 2024 11:12:09 +0800 Subject: [PATCH] :art: Try fill flashcard to db tpl https://github.com/siyuan-note/siyuan/issues/10502#issuecomment-1986703280 --- kernel/model/attribute_view.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 9774f0e05..bd8d8c819 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -1138,18 +1138,18 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a // 获取闪卡信息 flashcards := map[string]*Flashcard{} - deck := Decks[builtinDeckID] - if nil != deck { - var blockIDs []string - for _, row := range ret.Rows { - blockIDs = append(blockIDs, row.ID) - } - cards := deck.GetCardsByBlockIDs(blockIDs) - now := time.Now() - for _, card := range cards { - flashcards[card.BlockID()] = newFlashcard(card, builtinDeckID, now) - } - } + //deck := Decks[builtinDeckID] + //if nil != deck { + // var blockIDs []string + // for _, row := range ret.Rows { + // blockIDs = append(blockIDs, row.ID) + // } + // cards := deck.GetCardsByBlockIDs(blockIDs) + // now := time.Now() + // for _, card := range cards { + // flashcards[card.BlockID()] = newFlashcard(card, builtinDeckID, now) + // } + //} for _, row := range ret.Rows { for _, cell := range row.Cells {