def parse_offset(self, offset):
        if offset is None:
            return 0

        try:
            offset = int(offset)
        except ValueError:
            raise ApiError(400, {'code': 'invalid_offset'})
        if 0 < offset:
            raise ApiError(400, {'code': 'invalid_offset'})

        return offset
dataset/ETHPy150Open 4Catalyzer/flask-resty/flask_resty/pagination.py/LimitOffsetPagination.parse_offset/swapped operands of `<`