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); const cutoff = millisecondCutoffForRange(range, data.nextDayAtSecs);
for (const review of data.revlog as pb.BackendProto.RevlogEntry[]) { for (const review of data.revlog as pb.BackendProto.RevlogEntry[]) {
if (review.reviewKind == ReviewKind.EARLY_REVIEW) { switch (review.reviewKind) {
continue; 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) { if (cutoff && (review.id as number) < cutoff) {
continue; continue;