Fix/Exclude new cards from is_due_in_days

https://github.com/ankitects/anki/pull/4231/files#r2238901958
This commit is contained in:
user1823 2025-08-06 18:44:07 +05:30 committed by GitHub
parent 62e01fe03a
commit 1e22b6a0a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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