From ab7965d3d5997afbba5dae27498d0ec44ccc7a7e Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Mon, 28 Jul 2025 15:10:47 +0800 Subject: [PATCH] Update is_due_in_days logic to include original or current due date check --- rslib/src/browser_table.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rslib/src/browser_table.rs b/rslib/src/browser_table.rs index 4b6ff920e..312a17561 100644 --- a/rslib/src/browser_table.rs +++ b/rslib/src/browser_table.rs @@ -105,7 +105,8 @@ impl Card { /// Returns true if the card has a due date in terms of days. fn is_due_in_days(&self) -> bool { - matches!(self.queue, CardQueue::DayLearn | CardQueue::Review) + self.original_or_current_due() <= 365_000 // keep consistent with SQL + || matches!(self.queue, CardQueue::DayLearn | CardQueue::Review) || (self.ctype == CardType::Review && self.is_undue_queue()) }