diff options
author | Andy Lu <andy@stitchdata.com> | 2021-02-08 22:35:33 +0000 |
---|---|---|
committer | Andy Lu <andy@stitchdata.com> | 2021-02-08 22:35:33 +0000 |
commit | 790cc58f4551e0202461567df3c349693432aebf (patch) | |
tree | 4bf4e0f2abfe1045269938d34817cf234b358e52 | |
parent | 6d2902807908e47d67f2fb69eda6458c2622880c (diff) | |
download | tap-google-sheets-790cc58f4551e0202461567df3c349693432aebf.tar.gz tap-google-sheets-790cc58f4551e0202461567df3c349693432aebf.tar.zst tap-google-sheets-790cc58f4551e0202461567df3c349693432aebf.zip |
Skip normal looking timessupport-time-values
-rw-r--r-- | tap_google_sheets/sync.py | 4 |
1 files 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): | |||
66 | 66 | ||
67 | def drop_date_on_time(schema, record): | 67 | def drop_date_on_time(schema, record): |
68 | for field, field_schema in schema['properties'].items(): | 68 | for field, field_schema in schema['properties'].items(): |
69 | if field_schema.get('format') == 'time': | 69 | if field_schema.get('format') == 'time' and 'days,' in record[field]: |
70 | # `time` fields come back from Google like `X days, H:M:S` | 70 | # `time` fields can come back from Google like `X days, H:M:S` |
71 | old_time = record[field] | 71 | old_time = record[field] |
72 | new_time = old_time.split(',')[1].strip() | 72 | new_time = old_time.split(',')[1].strip() |
73 | record[field] = new_time | 73 | record[field] = new_time |