Fix/Exclude new cards from is_due_in_days (#4249)

https://github.com/ankitects/anki/pull/4231/files#r2238901958
This commit is contained in:
user1823 2025-08-08 15:58:13 +05:30 committed by Thomas Rixen
parent 1fff0e617e
commit 9f4221ca1d

View file

@ -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())
}