ignore manually scheduled cards in hour graph

This commit is contained in:
Damien Elmes 2021-02-10 09:36:51 +10:00
parent 599d463486
commit 402921dac7

View File

@ -46,8 +46,14 @@ function gatherData(data: pb.BackendProto.GraphsOut, range: GraphRange): Hour[]
const cutoff = millisecondCutoffForRange(range, data.nextDayAtSecs);
for (const review of data.revlog as pb.BackendProto.RevlogEntry[]) {
if (review.reviewKind == ReviewKind.EARLY_REVIEW) {
continue;
switch (review.reviewKind) {
case ReviewKind.LEARNING:
case ReviewKind.REVIEW:
case ReviewKind.RELEARNING:
break; // from switch
case ReviewKind.EARLY_REVIEW:
case ReviewKind.MANUAL:
continue; // next loop iteration
}
if (cutoff && (review.id as number) < cutoff) {
continue;