def filter(self, table, cg_snapshots, filter_string):
        """Naive case-insensitive search."""
        query = filter_string.lower()
        return [cg_snapshot for cg_snapshot in cg_snapshots
                if query in cg_snapshot.name.lower()]
def filter ( self , table , cg_snapshots , filter_string ) : query = filter_string . lower ( ) return [ cg_snapshot for cg_snapshot in cg_snapshots if query in cg_snapshot . name . lower ( ) ]
Naive case-insensitive search.