🎨 改进闪卡存储数据结构,支持一个块对应多张闪卡 https://github.com/siyuan-note/siyuan/issues/7417

This commit is contained in:
Liang Ding 2023-02-24 22:53:14 +08:00
parent fe9abe4b4b
commit 7bceb8e641
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 120 additions and 33 deletions

View file

@ -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"),
}