mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05:00
Fix days_since_last_review() when used in filtered deck
This commit is contained in:
parent
2580399552
commit
66b944b722
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ impl Card {
|
||||||
Some(TimestampSecs(self.due as i64))
|
Some(TimestampSecs(self.due as i64))
|
||||||
} else if self.is_due_in_days() {
|
} else if self.is_due_in_days() {
|
||||||
Some(TimestampSecs::now().adding_secs(
|
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 {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue