diff options
-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 |