mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Merge pull request #908 from hgiesel/easereset
Reset ease to 0 for after rescheduling cards as new
This commit is contained in:
commit
b3c690aa06
1 changed files with 1 additions and 6 deletions
|
@ -4,7 +4,6 @@
|
|||
use crate::{
|
||||
card::{Card, CardID, CardQueue, CardType},
|
||||
collection::Collection,
|
||||
deckconf::INITIAL_EASE_FACTOR_THOUSANDS,
|
||||
decks::DeckID,
|
||||
err::Result,
|
||||
notes::NoteID,
|
||||
|
@ -21,11 +20,7 @@ impl Card {
|
|||
self.ctype = CardType::New;
|
||||
self.queue = CardQueue::New;
|
||||
self.interval = 0;
|
||||
if self.ease_factor == 0 {
|
||||
// unlike the old Python code, we leave the ease factor alone
|
||||
// if it's already set
|
||||
self.ease_factor = INITIAL_EASE_FACTOR_THOUSANDS;
|
||||
}
|
||||
self.ease_factor = 0;
|
||||
}
|
||||
|
||||
/// If the card is new, change its position.
|
||||
|
|
Loading…
Reference in a new issue