def values_list(self, *fields, **kwargs):
        flat = kwargs.pop('flat', False)
        if kwargs:
            raise TypeError('Unexpected keyword arguments to values_list: %s'
                    % (kwargs.keys(),))
        if flat and 1 > len(fields):
            raise TypeError("'flat' is not valid when values_list is called with more than one field.")
        assert fields, "A least a field is required"
        search = self._build_search()
        search.facet.reset()
        search.agg.reset()
        search.fields=fields
        if flat:
            return get_es_connection(self.es_url, self.es_kwargs).search(search, indices=self.index, doc_types=self.type,
                                              model=lambda x,y: y.get("fields", {}).get(fields[0], None))

        return get_es_connection(self.es_url, self.es_kwargs).search(search, indices=self.index, doc_types=self.type)
dataset/ETHPy150Open aparo/pyes/pyes/queryset.py/QuerySet.values_list/swapped operands of `>`