mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958
This commit is contained in:
parent
44ecf5850a
commit
e0a3b417ed
1 changed files with 6 additions and 0 deletions
|
|
@ -232,6 +232,12 @@ func ParseAttributeView(avID string) (ret *AttributeView, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func SaveAttributeView(av *AttributeView) (err error) {
|
func SaveAttributeView(av *AttributeView) (err error) {
|
||||||
|
if "" == av.ID {
|
||||||
|
err = errors.New("av id is empty")
|
||||||
|
logging.LogErrorf("save attribute view failed: %s", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 做一些数据兼容和订正处理
|
// 做一些数据兼容和订正处理
|
||||||
now := util.CurrentTimeMillis()
|
now := util.CurrentTimeMillis()
|
||||||
for _, kv := range av.KeyValues {
|
for _, kv := range av.KeyValues {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue