From 6e7ed7404e42eb1faef7b75fd3924463081b8233 Mon Sep 17 00:00:00 2001 From: Shwetabh Kumar Date: Tue, 29 Aug 2023 15:14:14 +0530 Subject: [PATCH] adjustable page size for employees generator (#123) --- netsuitesdk/api/employees.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netsuitesdk/api/employees.py b/netsuitesdk/api/employees.py index 5e4f99a..d6d667e 100644 --- a/netsuitesdk/api/employees.py +++ b/netsuitesdk/api/employees.py @@ -12,7 +12,7 @@ class Employees(ApiBase): def __init__(self, ns_client): ApiBase.__init__(self, ns_client=ns_client, type_name='Employee') - def get_all_generator(self, is_inactive=False, last_modified_date_query={ + def get_all_generator(self, is_inactive=False, page_size=50, last_modified_date_query={ 'search_value', 'operator', }): @@ -37,7 +37,7 @@ def get_all_generator(self, is_inactive=False, last_modified_date_query={ client=self.ns_client, type_name='Employee', basic_search=basic_search, - pageSize=500 + pageSize=page_size ) return self._paginated_search_generator(paginated_search=paginated_search) diff --git a/setup.py b/setup.py index 0ab80a1..30b61c7 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='netsuitesdk', - version='2.20.0', + version='2.21.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing the NetSuite SOAP webservice',