Fix days_since_last_review() when used in filtered deck
This commit is contained in:
parent
2580399552
commit
66b944b722
|
@ -113,7 +113,7 @@ impl Card {
|
|||
Some(TimestampSecs(self.due as i64))
|
||||
} else if self.is_due_in_days() {
|
||||
Some(TimestampSecs::now().adding_secs(
|
||||
((self.due - timing.days_elapsed as i32).saturating_mul(86400)) as i64,
|
||||
((self.original_or_current_due() - timing.days_elapsed as i32).saturating_mul(86400)) as i64,
|
||||
))
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Reference in New Issue