@tornado.gen.coroutine
    def getlist(self, uri):
        """
        Get a list of results
        """
        blacklist = self.blacklist()
        params = self.queryset()
        pagination = self.pagination()
        slace = self.getSlace(**pagination)
        start, end = (slace['start'], slace['end'])
        try:
            count = yield self.collection.find(params)[start:end].count()
            cursor = self.collection.find(params,blacklist).sort([('_id', -1)])[start:end]
            meta = {
                "limit": pagination['limit'],
                "next": pagination['next'],
                "offset": pagination['page'],
                "previous": pagination['previous'],                    
            }
            meta['total_count'] = str(count)
            if pagination['limit'] <  count:
                meta['next'] = None
            objects = []
            while (yield cursor.fetch_next):
                obj = cursor.next_object()
                obj['uri'] = uri + str(obj["_id"])
                objects.append(obj)
            results = [document for document in objects]
            self.setResponseDictSuccess(results,meta)
        except Exception as e:
            self.setResponseDictErrors("Not Found!")
        return
dataset/ETHPy150Open tgonzales/mingus/mingus/resources.py/ResourceModel.getlist/swapped operands of `<`