mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
backlog fix
private message: https://forums.ankiweb.net/t/issues-on-stats-page-anki-2-1-28beta6/1114
This commit is contained in:
parent
f45627dbd3
commit
88fee1b7aa
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,10 @@ export function gatherData(data: pb.BackendProto.GraphsOut): GraphData {
|
|||
if (c.queue == CardQueue.Learn) {
|
||||
return 0;
|
||||
} else {
|
||||
const due = c.odid ? c.odue : c.due;
|
||||
// - testing just odue fails on day 1
|
||||
// - testing just odid fails on lapsed cards that
|
||||
// have due calculated at regraduation time
|
||||
const due = c.odid && c.odue ? c.odue : c.due;
|
||||
return due - data.daysElapsed;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue