update trending fields for the leveldb hub #13

Merged
jackrobison merged 2 commits from update-for-leveldb-hub into master 2021-09-20 19:42:03 +02:00
Showing only changes of commit fc57c177e2 - Show all commits

View file

@ -129,7 +129,10 @@ func RoundUpReleaseTime(q *elastic.BoolQuery, rq *pb.RangeField, name string) *e
if rq == nil { if rq == nil {
return q return q
} }
releaseTimeInt, _ := strconv.ParseInt(rq.Value[0], 10, 32) releaseTimeInt, err := strconv.ParseInt(rq.Value[0], 10, 32)
if err != nil {
return q
}
if releaseTimeInt < 0 { if releaseTimeInt < 0 {
releaseTimeInt *= - 1 releaseTimeInt *= - 1
} }