mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Handle case where cards are imported into a collection with a newer start
https://forums.ankiweb.net/t/bug-report-when-the-original-due-is-less-than-0-the-due-will-be-weird-when-empty-the-filter-deck/31279 The 0 day case isn't fixed by this, but I don't think we can fix that with the current schema.
This commit is contained in:
parent
0f079779e2
commit
6f9b152028
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ impl Card {
|
|||
}
|
||||
SchedulerVersion::V2 => {
|
||||
// original_due is cleared if card answered in filtered deck
|
||||
if self.original_due > 0 {
|
||||
if self.original_due != 0 {
|
||||
self.due = self.original_due;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue