def get_filter(self, name):
        """Return the filter that has the given filter name.

        :param name: The name to search for.
        :return: The filter with the given name.
        :rtype: :class:`pytodoist.todoist.Filter`

        >>> from pytodoist import todoist
        >>> user = todoist.login('john.doe@gmail.com', 'password')
        >>> user.add_filter('Overdue', todoist.Query.OVERDUE)
        >>> overdue_filter = user.get_filter('Overdue')
        """
        for flter in self.get_filters():
            if flter.name == name:
                return flter
def get_filter ( self , name ) : for flter in self . get_filters ( ) : if flter . name == name : return flter
Return the filter that has the given filter name.

        :param name: The name to search for.
        :return: The filter with the given name.
        :rtype: :class:`pytodoist.todoist.Filter`

        >>> from pytodoist import todoist
        >>> user = todoist.login('john.doe@gmail.com', 'password')
        >>> user.add_filter('Overdue', todoist.Query.OVERDUE)
        >>> overdue_filter = user.get_filter('Overdue')