diff --git a/setup.py b/setup.py index ecc60cc..5a5ea1d 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup(name='tap-chargebee', - version='1.0.15', + version='1.0.16', description='Singer.io tap for extracting data from the Chargebee API', author='dwallace@envoy.com', classifiers=['Programming Language :: Python :: 3 :: Only'], diff --git a/tap_chargebee/streams/base.py b/tap_chargebee/streams/base.py index 0fe8e0f..fa36f72 100644 --- a/tap_chargebee/streams/base.py +++ b/tap_chargebee/streams/base.py @@ -190,11 +190,11 @@ def sync_data(self): if bookmark_key is not None: for item in to_write: - #if item.get(bookmark_key) is not None: - max_date = max( - max_date, - parse(item.get(bookmark_key)) - ) + if item.get(bookmark_key) is not None: + max_date = max( + max_date, + parse(item.get(bookmark_key)) + ) if bookmark_key is not None: self.state = incorporate(