From 1e22b6a0a3908df7737b05ae0f01ca40f254f796 Mon Sep 17 00:00:00 2001 From: user1823 <92206575+user1823@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:44:07 +0530 Subject: [PATCH] Fix/Exclude new cards from is_due_in_days 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()) }