From 7a9c6172efc97c5eb9aed0daaeaac619d4c20d29 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 7 Jun 2023 16:20:44 +1000 Subject: [PATCH] When cards are intraday learning queue, don't use original due https://forums.ankiweb.net/t/backlog-with-no-backlo/30832 --- rslib/src/stats/graphs/future_due.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rslib/src/stats/graphs/future_due.rs b/rslib/src/stats/graphs/future_due.rs index 0c987a300..4b152448e 100644 --- a/rslib/src/stats/graphs/future_due.rs +++ b/rslib/src/stats/graphs/future_due.rs @@ -16,7 +16,8 @@ impl GraphsContext { } // The extra original_due check covers lapsed cards, which have their due date // updated on graduation. - let due = if c.is_filtered() && c.original_due != 0 { + let intraday = c.is_intraday_learning(); + let due = if c.is_filtered() && c.original_due != 0 && !intraday { c.original_due } else { c.due