Skip to content

Commit

Permalink
Merge pull request #12 from hotgluexyz/fix/NoneBookmarkKey
Browse files Browse the repository at this point in the history
fix empty bookmak key error
  • Loading branch information
hsyyid authored May 11, 2022
2 parents 3f15d99 + 9d290dd commit c6968b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
classifiers=['Programming Language :: Python :: 3 :: Only'],
Expand Down
10 changes: 5 additions & 5 deletions tap_chargebee/streams/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c6968b9

Please sign in to comment.