mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 改进闪卡存储数据结构,支持一个块对应多张闪卡 https://github.com/siyuan-note/siyuan/issues/7417
This commit is contained in:
parent
fe9abe4b4b
commit
7bceb8e641
4 changed files with 120 additions and 33 deletions
|
|
@ -254,7 +254,7 @@ func deckData(deck *riff.Deck) map[string]interface{} {
|
|||
return map[string]interface{}{
|
||||
"id": deck.ID,
|
||||
"name": deck.Name,
|
||||
"size": len(deck.BlockCard),
|
||||
"size": deck.CountCards(),
|
||||
"created": time.UnixMilli(deck.Created).Format("2006-01-02 15:04:05"),
|
||||
"updated": time.UnixMilli(deck.Updated).Format("2006-01-02 15:04:05"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue