search_notes_cards_into_table →

search_cards_of_notes_into_table
This commit is contained in:
RumovZ 2022-03-31 18:23:18 +02:00
parent 4aa5ee5fb4
commit fce797cb47
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ impl Collection {
}
fn gather_cards(&mut self) -> Result<Vec<Card>> {
self.storage.search_notes_cards_into_table()?;
self.storage.search_cards_of_notes_into_table()?;
self.storage.all_searched_cards()
}

View file

@ -457,7 +457,7 @@ impl super::SqliteStorage {
/// Place the ids of cards with notes in 'search_nids' into 'search_cids'.
/// Returns number of added cards.
pub(crate) fn search_notes_cards_into_table(&self) -> Result<usize> {
pub(crate) fn search_cards_of_notes_into_table(&self) -> Result<usize> {
self.setup_searched_cards_table()?;
self.db
.prepare(concat!(