Normalize intervals query

This commit is contained in:
Henrik Giesel 2021-01-08 14:00:18 +01:00
parent 2fd4039494
commit 740dcedbe6

View File

@ -143,13 +143,13 @@ export function prepareIntervalData(
const end = bin.x1! - 1;
if (start === end) {
return `prop:ivl=${start}`
return `"prop:ivl=${start}"`
}
const fromQuery = `prop:ivl>=${start}`
const tillQuery = `prop:ivl<=${end}`
const fromQuery = `"prop:ivl>=${start}"`
const tillQuery = `"prop:ivl<=${end}"`
return `${fromQuery} ${tillQuery}`
return `${fromQuery} AND ${tillQuery}`
}
const meanInterval = Math.round(mean(allIntervals) ?? 0);