🐛 Database rollup calculation range anomaly https://github.com/siyuan-note/siyuan/issues/10913

This commit is contained in:
Daniel 2024-04-07 11:59:27 +08:00
parent 65cdd1a319
commit ca1be10f17
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -781,6 +781,10 @@ func (r *ValueRollup) RenderContents(calc *RollupCalc, destKey *Key) {
r.Contents = []*Value{{Type: KeyTypeNumber, Number: NewFormattedValueNumber(maxVal, destKey.NumberFormat)}}
}
case CalcOperatorRange:
if 2 > len(r.Contents) {
return
}
minVal := math.MaxFloat64
maxVal := -math.MaxFloat64
earliest := int64(0)