include 1+ day learning cards in future due graph
This commit is contained in:
parent
10afe2883a
commit
44668c5b1d
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user