(self, query_filter)
Make changes to the query filter.
Make changes to the query filter.
Make changes to the query filter .
def query_filter(self, query_filter):
        """Make changes to the query filter."""
        if isinstance(query_filter, str):
            try:
                query_filter = json.loads(query_filter)
            except json.JSONDecodeError as exc:
                raise ValueError('Unable to parse the string as JSON') from exc

        if not isinstance(query_filter, dict):
            raise ValueError('Query filter needs to be a dict.')
        self._query_filter = query_filter
        self._extract_chips(query_filter)
        self.commit()
def query_filter ( self , query_filter ) : if isinstance ( query_filter , str ) : try : query_filter = json . loads ( query_filter ) except json . JSONDecodeError as exc : raise ValueError ( 'Unable to parse the string as JSON' ) from exc if not isinstance ( query_filter , dict ) : raise ValueError ( 'Query filter needs to be a dict.' ) self . _query_filter = query_filter self . _extract_chips ( query_filter ) self . commit ( )