mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
don't convert from sm2 when ivl = 0 (#2849)
This commit is contained in:
parent
046ae539fb
commit
3713c86373
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ impl Card {
|
||||||
self.memory_state = item
|
self.memory_state = item
|
||||||
.map(|i| fsrs.memory_state(i.item, i.starting_state))
|
.map(|i| fsrs.memory_state(i.item, i.starting_state))
|
||||||
.or_else(|| {
|
.or_else(|| {
|
||||||
if self.ctype == CardType::New {
|
if self.ctype == CardType::New || self.interval == 0 {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
// no valid revlog entries; infer state from current card state
|
// no valid revlog entries; infer state from current card state
|
||||||
|
|
Loading…
Reference in a new issue