From f012a137927591d5d9068d5d499d424ea4112ea9 Mon Sep 17 00:00:00 2001 From: Scott Coleman Date: Thu, 19 Mar 2020 09:14:03 -0500 Subject: Emit state during incremental sync where bookmark not exceeded (#11) --- CHANGELOG.md | 3 +++ setup.py | 2 +- tap_google_sheets/sync.py | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc3f38..2f29937 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 1.0.1 + * Emit state file for incremental sync where bookmark not exceeded. + ## 1.0.0 * No change from `v0.0.4` diff --git a/setup.py b/setup.py index 5aaf0a5..27b8573 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup(name='tap-google-sheets', - version='1.0.0', + version='1.0.1', description='Singer.io tap for extracting data from the Google Sheets v4 API', author='jeff.huth@bytecode.io', classifiers=['Programming Language :: Python :: 3 :: Only'], diff --git a/tap_google_sheets/sync.py b/tap_google_sheets/sync.py index b77eab3..689be27 100644 --- a/tap_google_sheets/sync.py +++ b/tap_google_sheets/sync.py @@ -388,6 +388,8 @@ def sync(client, config, catalog, state): LOGGER.info('last_datetime = {}, this_datetime = {}'.format(last_datetime, this_datetime)) if this_datetime <= last_datetime: LOGGER.info('this_datetime <= last_datetime, FILE NOT CHANGED. EXITING.') + # Update file_metadata bookmark + write_bookmark(state, 'file_metadata', strftime(this_datetime)) return # Sync file_metadata if selected sync_stream(stream_name, selected_streams, catalog, state, file_metadata_tf, time_extracted) -- cgit v1.2.3