mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix handling of due reviews in filtered deck+future due graph
This commit is contained in:
parent
dbbdd16f0f
commit
15c9cd9108
1 changed files with 8 additions and 1 deletions
|
@ -29,7 +29,14 @@ export function gatherData(data: pb.BackendProto.GraphsOut): GraphData {
|
|||
// or learning cards due today
|
||||
(c.queue == CardQueue.Learn && c.due < data.nextDayAtSecs)
|
||||
)
|
||||
.map((c) => (c.queue == CardQueue.Learn ? 0 : c.due - data.daysElapsed));
|
||||
.map((c) => {
|
||||
if (c.queue == CardQueue.Learn) {
|
||||
return 0;
|
||||
} else {
|
||||
const due = c.odid ? c.odue : c.due;
|
||||
return due - data.daysElapsed;
|
||||
}
|
||||
});
|
||||
|
||||
const dueCounts = rollup(
|
||||
due,
|
||||
|
|
Loading…
Reference in a new issue