mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix errors
This commit is contained in:
parent
e218f64b3b
commit
615fd3340e
1 changed files with 10 additions and 13 deletions
|
@ -61,29 +61,26 @@ impl QueueBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn gather_new_cards(&mut self, col: &mut Collection) -> Result<()> {
|
fn gather_new_cards(&mut self, col: &mut Collection) -> Result<()> {
|
||||||
let salt = knuth_salt(self.context.timing.days_elapsed);
|
let salt = Self::knuth_salt(self.context.timing.days_elapsed);
|
||||||
match self.context.sort_options.new_gather_priority {
|
match self.context.sort_options.new_gather_priority {
|
||||||
NewCardGatherPriority::Deck => {
|
NewCardGatherPriority::Deck => {
|
||||||
self.gather_new_cards_by_deck(col, NewCardSorting::LowestPosition)
|
self.gather_new_cards_by_deck(col, NewCardSorting::LowestPosition)
|
||||||
}
|
}
|
||||||
NewCardGatherPriority::DeckThenRandomNotes => self.gather_new_cards_by_deck(
|
NewCardGatherPriority::DeckThenRandomNotes => {
|
||||||
col,
|
self.gather_new_cards_by_deck(col, NewCardSorting::RandomNotes(salt))
|
||||||
NewCardSorting::RandomNotes(salt),
|
}
|
||||||
),
|
|
||||||
NewCardGatherPriority::LowestPosition => {
|
NewCardGatherPriority::LowestPosition => {
|
||||||
self.gather_new_cards_sorted(col, NewCardSorting::LowestPosition)
|
self.gather_new_cards_sorted(col, NewCardSorting::LowestPosition)
|
||||||
}
|
}
|
||||||
NewCardGatherPriority::HighestPosition => {
|
NewCardGatherPriority::HighestPosition => {
|
||||||
self.gather_new_cards_sorted(col, NewCardSorting::HighestPosition)
|
self.gather_new_cards_sorted(col, NewCardSorting::HighestPosition)
|
||||||
}
|
}
|
||||||
NewCardGatherPriority::RandomNotes => self.gather_new_cards_sorted(
|
NewCardGatherPriority::RandomNotes => {
|
||||||
col,
|
self.gather_new_cards_sorted(col, NewCardSorting::RandomNotes(salt))
|
||||||
NewCardSorting::RandomNotes(salt),
|
}
|
||||||
),
|
NewCardGatherPriority::RandomCards => {
|
||||||
NewCardGatherPriority::RandomCards => self.gather_new_cards_sorted(
|
self.gather_new_cards_sorted(col, NewCardSorting::RandomCards(salt))
|
||||||
col,
|
}
|
||||||
NewCardSorting::RandomCards(salt),
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue