mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix/Exclude new cards from is_due_in_days
https://github.com/ankitects/anki/pull/4231/files#r2238901958
This commit is contained in:
parent
62e01fe03a
commit
1e22b6a0a3
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue