pub async fn filter_annotations_make(
        &self,
        filters: Filters,
    ) -> color_eyre::Result<Vec<Annotation>> {
        let pb = utils::get_spinner("Fetching annotations...");
        // Get all annotations
        let annotations: Vec<_> = self
            .filter_annotations(filters, None)
            .await?
            .into_iter()
            .filter(|a| {
                !a.tags.iter().any(|t| {
                    self.config
                        .ignore_tags
                        .as_ref()
                        .map(|ignore_tags| ignore_tags.contains(t))
                        .unwrap_or(false)
                })
            })
            .collect();
        pb.finish_with_message(format!("Fetched {} annotations", annotations.len()));
        Ok(annotations)
    }
/// Fetch annotations for knowledge base
/// Ignores annotations with tags in `ignore_tags` configuration option.
Fetch annotations for knowledge base
Ignores annotations with tags in `ignore_tags` configuration option.
Fetch annotations for knowledge base Ignores annotations with tags in ` ignore_tags ` configuration option .
pub async fn filter_annotations_make(
        &self,
        filters: Filters,
    ) -> color_eyre::Result<Vec<Annotation>> {
        let pb = utils::get_spinner("Fetching annotations...");
        // Get all annotations
        let annotations: Vec<_> = self
            .filter_annotations(filters, None)
            .await?
            .into_iter()
            .filter(|a| {
                !a.tags.iter().any(|t| {
                    self.config
                        .ignore_tags
                        .as_ref()
                        .map(|ignore_tags| ignore_tags.contains(t))
                        .unwrap_or(false)
                })
            })
            .collect();
        pb.finish_with_message(format!("Fetched {} annotations", annotations.len()));
        Ok(annotations)
    }
pub async fn filter_annotations_make ( & self , filters : Filters , ) -> color_eyre :: Result < Vec < Annotation > > { let pb = utils :: get_spinner ( " " ) ; // Get all annotations let annotations : Vec < _ > = self . filter_annotations ( filters , None ) . await ? . into_iter ( ) . filter ( | a | { ! a . tags . iter ( ) . any ( | t | { self . config . ignore_tags . as_ref ( ) . map ( | ignore_tags | ignore_tags . contains ( t ) ) . unwrap_or ( false ) } ) } ) . collect ( ) ; pb . finish_with_message ( format ! ( " " annotations len ( ) ) ) ; Ok ( annotations ) }
Fetch annotations for knowledge base
Ignores annotations with tags in `ignore_tags` configuration option.
Fetch annotations for knowledge base Ignores annotations with tags in ` ignore_tags ` configuration option .
&self
filters
Filters
&self
filters
Filters