(self, secret: dict)
Add secret to matches_ignore.
Add secret to matches_ignore.
Add secret to matches_ignore .
def add_ignored_match(self, secret: dict) -> None:
        """Add secret to matches_ignore."""

        matches_ignore = [
            match["match"] if isinstance(match, dict) else match
            for match in self.matches_ignore
        ]
        if secret["match"] not in matches_ignore:
            self.matches_ignore.append(secret)
        else:
            for match in self.matches_ignore:
                if (
                    isinstance(match, dict)
                    and match["match"] == secret["match"]
                    and match["name"] == ""
                ):
                    match.update({"name": secret["name"]})
def add_ignored_match ( self , secret : dict ) -> None : matches_ignore = [ match [ "match" ] if isinstance ( match , dict ) else match for match in self . matches_ignore ] if secret [ "match" ] not in matches_ignore : self . matches_ignore . append ( secret ) else : for match in self . matches_ignore : if ( isinstance ( match , dict ) and match [ "match" ] == secret [ "match" ] and match [ "name" ] == "" ) : match . update ( { "name" : secret [ "name" ] } )