From 9f4221ca1d8246479c4777592c7568f09e1fc38e Mon Sep 17 00:00:00 2001 From: user1823 <92206575+user1823@users.noreply.github.com> Date: Fri, 8 Aug 2025 15:58:13 +0530 Subject: [PATCH] Fix/Exclude new cards from is_due_in_days (#4249) https://github.com/ankitects/anki/pull/4231/files#r2238901958 --- rslib/src/browser_table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/browser_table.rs b/rslib/src/browser_table.rs index c13d9c294..ef7453955 100644 --- a/rslib/src/browser_table.rs +++ b/rslib/src/browser_table.rs @@ -105,7 +105,7 @@ impl Card { /// Returns true if the card has a due date in terms of days. fn is_due_in_days(&self) -> bool { - self.original_or_current_due() <= 365_000 // keep consistent with SQL + self.ctype != CardType::New && 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()) }