Fix days_since_last_review() when used in filtered deck

This commit is contained in:
Damien Elmes 2023-09-27 14:40:01 +10:00
parent 2580399552
commit 66b944b722
1 changed files with 1 additions and 1 deletions

View File

@ -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