include 1+ day learning cards in future due graph

This commit is contained in:
Damien Elmes 2020-07-21 14:10:32 +10:00
parent 10afe2883a
commit 44668c5b1d
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ export interface GraphData {
export function gatherData(data: pb.BackendProto.GraphsOut): GraphData {
const due = (data.cards as pb.BackendProto.Card[])
.filter((c) => c.queue == CardQueue.Review) // && c.due >= data.daysElapsed)
.filter((c) => [CardQueue.Review, CardQueue.DayLearn].includes(c.queue))
.map((c) => c.due - data.daysElapsed);
const dueCounts = rollup(
due,

View File

@ -2,7 +2,7 @@
"exclude": ["node_modules", "dist"],
"compilerOptions": {
/* Basic Options */
"target": "es6",
"target": "es2016",
"module": "es6",
"declaration": false /* Generates corresponding '.d.ts' file. */,
"rootDir": "src",