mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🎨 Database date field fill end var https://ld246.com/article/1713177507282
This commit is contained in:
parent
6c4dd3674d
commit
ee42be1729
1 changed files with 7 additions and 2 deletions
|
|
@ -901,9 +901,14 @@ func renderTemplateCol(ial map[string]string, flashcard *Flashcard, rowValues []
|
||||||
dataModel[rowValue.Key.Name] = v.Number.Content
|
dataModel[rowValue.Key.Name] = v.Number.Content
|
||||||
}
|
}
|
||||||
} else if av.KeyTypeDate == v.Type {
|
} else if av.KeyTypeDate == v.Type {
|
||||||
if nil != v.Date && v.Date.IsNotEmpty {
|
if nil != v.Date {
|
||||||
|
if v.Date.IsNotEmpty {
|
||||||
dataModel[rowValue.Key.Name] = time.UnixMilli(v.Date.Content)
|
dataModel[rowValue.Key.Name] = time.UnixMilli(v.Date.Content)
|
||||||
}
|
}
|
||||||
|
if v.Date.IsNotEmpty2 {
|
||||||
|
dataModel[rowValue.Key.Name+"_end"] = time.UnixMilli(v.Date.Content2)
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if av.KeyTypeRollup == v.Type {
|
} else if av.KeyTypeRollup == v.Type {
|
||||||
if 0 < len(v.Rollup.Contents) {
|
if 0 < len(v.Rollup.Contents) {
|
||||||
var numbers []float64
|
var numbers []float64
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue