mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix due date showing incorrectly in filtered deck
Regressed in #3471 Closes #3515
This commit is contained in:
parent
1bf10ded79
commit
1fb4430913
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,11 @@ impl Collection {
|
|||
Ok(match card.ctype {
|
||||
CardType::New => None,
|
||||
CardType::Review | CardType::Learn | CardType::Relearn => {
|
||||
let due = card.due;
|
||||
let due = if card.original_due != 0 {
|
||||
card.original_due
|
||||
} else {
|
||||
card.due
|
||||
};
|
||||
if !is_unix_epoch_timestamp(due) {
|
||||
let days_remaining = due - (self.timing_today()?.days_elapsed as i32);
|
||||
let mut due_timestamp = TimestampSecs::now();
|
||||
|
|
Loading…
Reference in a new issue