From 8a43745f837be7286d0dfd5fcec0b8d185c21145 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 8 Jan 2021 13:48:42 +0100 Subject: [PATCH] Remove onlyReview from intervals query --- ts/graphs/intervals.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ts/graphs/intervals.ts b/ts/graphs/intervals.ts index 0038e20b5..a87361e78 100644 --- a/ts/graphs/intervals.ts +++ b/ts/graphs/intervals.ts @@ -138,20 +138,18 @@ export function prepareIntervalData( data: HistogramData, binIdx: number, ): string { - const onlyReview = "-(is:new or is:learn or is:suspended or is:buried)" - const bin = data.bins[binIdx]; const start = bin.x0!; const end = bin.x1! - 1; if (start === end) { - return `prop:ivl=${start} ${onlyReview}` + return `prop:ivl=${start}` } const fromQuery = `prop:ivl>=${start}` const tillQuery = `prop:ivl<=${end}` - return `${fromQuery} ${tillQuery} ${onlyReview}` + return `${fromQuery} ${tillQuery}` } const meanInterval = Math.round(mean(allIntervals) ?? 0);