Skip to content

Commit

Permalink
fix since_id bookmark popping (#29)
Browse files Browse the repository at this point in the history
* fix since_id bookmark popping

* remove whitespace
  • Loading branch information
nick-mccoy authored Jan 24, 2019
1 parent 5330b65 commit a9c89c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_shopify/streams/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def get_objects(self):
# Save the updated_at_max as our bookmark as we've synced all rows up in our
# window and can move forward. Also remove the since_id because we want to
# restart at 1.
Context.state.get(self.name, {}).pop('since_id', None)
Context.state.get('bookmarks', {}).get(self.name, {}).pop('since_id', None)
self.update_bookmark(utils.strftime(updated_at_max))
break

Expand Down

0 comments on commit a9c89c0

Please sign in to comment.