decks_configs → deck_configs

This commit is contained in:
RumovZ 2022-04-08 10:41:33 +02:00
parent 5cf1705784
commit 7520afd9c5
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ pub(super) struct ExchangeData {
pub(super) cards: Vec<Card>,
pub(super) notetypes: Vec<Notetype>,
pub(super) revlog: Vec<RevlogEntry>,
pub(super) decks_configs: Vec<DeckConfig>,
pub(super) deck_configs: Vec<DeckConfig>,
pub(super) media_paths: HashSet<PathBuf>,
}
@ -42,7 +42,7 @@ impl ExchangeData {
if with_scheduling {
self.revlog = col.gather_revlog()?;
self.decks_configs = col.gather_deck_configs(&self.decks)?;
self.deck_configs = col.gather_deck_configs(&self.decks)?;
} else {
self.remove_scheduling_information(col);
};

View file

@ -11,7 +11,7 @@ impl Collection {
self.insert_cards(&data.cards)?;
self.insert_notetypes(&data.notetypes)?;
self.insert_revlog(&data.revlog)?;
self.insert_deck_configs(&data.decks_configs)?;
self.insert_deck_configs(&data.deck_configs)?;
Ok(())
}