From 790cc58f4551e0202461567df3c349693432aebf Mon Sep 17 00:00:00 2001 From: Andy Lu Date: Mon, 8 Feb 2021 22:35:33 +0000 Subject: Skip normal looking times --- tap_google_sheets/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_google_sheets/sync.py b/tap_google_sheets/sync.py index 986c6ca..d4db8ec 100644 --- a/tap_google_sheets/sync.py +++ b/tap_google_sheets/sync.py @@ -66,8 +66,8 @@ def write_bookmark(state, stream, value): def drop_date_on_time(schema, record): for field, field_schema in schema['properties'].items(): - if field_schema.get('format') == 'time': - # `time` fields come back from Google like `X days, H:M:S` + if field_schema.get('format') == 'time' and 'days,' in record[field]: + # `time` fields can come back from Google like `X days, H:M:S` old_time = record[field] new_time = old_time.split(',')[1].strip() record[field] = new_time -- cgit v1.2.3