mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Remove onlyReview from intervals query
This commit is contained in:
parent
1232fd7069
commit
8a43745f83
1 changed files with 2 additions and 4 deletions
|
@ -138,20 +138,18 @@ export function prepareIntervalData(
|
||||||
data: HistogramData,
|
data: HistogramData,
|
||||||
binIdx: number,
|
binIdx: number,
|
||||||
): string {
|
): string {
|
||||||
const onlyReview = "-(is:new or is:learn or is:suspended or is:buried)"
|
|
||||||
|
|
||||||
const bin = data.bins[binIdx];
|
const bin = data.bins[binIdx];
|
||||||
const start = bin.x0!;
|
const start = bin.x0!;
|
||||||
const end = bin.x1! - 1;
|
const end = bin.x1! - 1;
|
||||||
|
|
||||||
if (start === end) {
|
if (start === end) {
|
||||||
return `prop:ivl=${start} ${onlyReview}`
|
return `prop:ivl=${start}`
|
||||||
}
|
}
|
||||||
|
|
||||||
const fromQuery = `prop:ivl>=${start}`
|
const fromQuery = `prop:ivl>=${start}`
|
||||||
const tillQuery = `prop:ivl<=${end}`
|
const tillQuery = `prop:ivl<=${end}`
|
||||||
|
|
||||||
return `${fromQuery} ${tillQuery} ${onlyReview}`
|
return `${fromQuery} ${tillQuery}`
|
||||||
}
|
}
|
||||||
|
|
||||||
const meanInterval = Math.round(mean(allIntervals) ?? 0);
|
const meanInterval = Math.round(mean(allIntervals) ?? 0);
|
||||||
|
|
Loading…
Reference in a new issue