diff --git a/atlasapi/__init__.py b/atlasapi/__init__.py index 23bb6ac..09fb97f 100644 --- a/atlasapi/__init__.py +++ b/atlasapi/__init__.py @@ -15,4 +15,4 @@ # __init__.py # Version of the realpython-reader package -__version__ = "2.0.4" +__version__ = "2.0.5" diff --git a/atlasapi/network.py b/atlasapi/network.py index 85b970c..2552c4c 100644 --- a/atlasapi/network.py +++ b/atlasapi/network.py @@ -34,6 +34,7 @@ def merge(dict1, dict2): return dict2.update(dict1) + class Network: """Network constructor @@ -162,6 +163,7 @@ def get_big(self, uri, params: dict = None): This is a temporary fix until we re-factor pagination. Args: + params: dict of parameters that should be sent on the path uri (str): URI Returns: @@ -171,16 +173,15 @@ def get_big(self, uri, params: dict = None): Exception: Network issue """ r = None - print(f"Revieved the following parameters {params}") if params: - logger.warning(f"Revieved the following parameters {params}") - merge({'itemsPerPage': Settings.itemsPerPage},params) - logger.warning(f"The parameters are now {params}") + logger.debug(f"Recieved the following parameters to the get_big method : {params}") + merge({'itemsPerPage': Settings.itemsPerPage}, params) + logger.debug(f"The parameters are now {params}") else: params = {'itemsPerPage': Settings.itemsPerPage} try: - logger.warning(f"The parameters object is {params}") + logger.debug(f"The parameters object is {params}") r = requests.get(uri, allow_redirects=True, params=params, diff --git a/setup.py b/setup.py index ea92b1a..d573107 100644 --- a/setup.py +++ b/setup.py @@ -3,10 +3,10 @@ setup( name='atlasapi', - version='2.0.4', + version='2.0.5', python_requires='>=3.7', packages=find_packages(exclude=("tests",)), - install_requires=['requests', 'python-dateutil', 'isodate', 'future', 'pytz','coolname', 'humanfriendly', 'nose'], + install_requires=['requests', 'python-dateutil', 'isodate', 'future', 'pytz', 'coolname', 'humanfriendly', 'nose'], setup_requires=['wheel'], # Metadata author="Matthew G. Monteleone", @@ -40,7 +40,6 @@ ], entry_points={ 'console_scripts': [ - #final script name:local package name:local function name 'atlascli=atlascli.cli:main', ] },