mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 05:53:53 -05:00
Update is_due_in_days logic to include original or current due date check
This commit is contained in:
parent
aecff39b6f
commit
ab7965d3d5
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,8 @@ impl Card {
|
|||
|
||||
/// Returns true if the card has a due date in terms of days.
|
||||
fn is_due_in_days(&self) -> bool {
|
||||
matches!(self.queue, CardQueue::DayLearn | CardQueue::Review)
|
||||
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