Sfoglia il codice sorgente

:bug: Fix database rollup calc https://ld246.com/article/1713803461956

Daniel 1 anno fa
parent
commit
cac7da4eda
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      kernel/av/value.go

+ 1 - 1
kernel/av/value.go

@@ -849,7 +849,7 @@ func (r *ValueRollup) RenderContents(calc *RollupCalc, destKey *Key) {
 			if KeyTypeDate == v.Type && nil != v.Date && v.Date.IsNotEmpty {
 			if KeyTypeDate == v.Type && nil != v.Date && v.Date.IsNotEmpty {
 				if 0 == latest || latest < v.Date.Content {
 				if 0 == latest || latest < v.Date.Content {
 					latest = v.Date.Content
 					latest = v.Date.Content
-					isNotTime = v.Date.IsNotEmpty
+					isNotTime = v.Date.IsNotTime
 					hasEndDate = v.Date.HasEndDate
 					hasEndDate = v.Date.HasEndDate
 				}
 				}
 			}
 			}