Fixes past data not correctly processed

This commit is contained in:
Matteo Biscosi 2023-06-14 09:22:25 +00:00
parent 0d337f1eba
commit df7adac739
3 changed files with 8 additions and 5 deletions

View file

@ -162,7 +162,7 @@ function ts_data.get_timeseries(http_context)
res.metadata = {}
end
if not isEmptyString(compare_backward) and (res.metadata.epoch_step ~= nil) and table.len(res.statistics or {}) > 0 then
if not isEmptyString(compare_backward) and (res.metadata.epoch_step) then
res = compareBackward(compare_backward, res, options)
end