def __call__(self, query, view):
        limit = self.get_limit()
        if limit is not None:
            query = query.limit(limit + 1)

        items = query.all()

        if limit is not None and len(items) > limit:
            has_next_page = True
            items = items[:limit]
        else:
            has_next_page = False

        meta.set_response_meta(has_next_page=has_next_page)
        return items
dataset/ETHPy150Open 4Catalyzer/flask-resty/flask_resty/pagination.py/LimitPagination.__call__/original