aboutsummaryrefslogtreecommitdiffhomepage
path: root/tap_google_sheets/discover.py
diff options
context:
space:
mode:
authorJeff Huth <jeff.huth@bytecode.io>2019-11-15 01:58:55 -0800
committerJeff Huth <jeff.huth@bytecode.io>2019-11-15 01:58:55 -0800
commit99424fee5ba6ff830df39be8f47c3e3d685b444a (patch)
tree08ace54622092921ab7253946515ce5d3dcf0a66 /tap_google_sheets/discover.py
parentda690bda91ea6a14964a2378e5dbb5d4de91a7e2 (diff)
downloadtap-google-sheets-99424fee5ba6ff830df39be8f47c3e3d685b444a.tar.gz
tap-google-sheets-99424fee5ba6ff830df39be8f47c3e3d685b444a.tar.zst
tap-google-sheets-99424fee5ba6ff830df39be8f47c3e3d685b444a.zip
pylint and testingv0.0.1
pylint and testing
Diffstat (limited to 'tap_google_sheets/discover.py')
-rw-r--r--tap_google_sheets/discover.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tap_google_sheets/discover.py b/tap_google_sheets/discover.py
index 6477a5f..6cf0d09 100644
--- a/tap_google_sheets/discover.py
+++ b/tap_google_sheets/discover.py
@@ -10,11 +10,11 @@ def discover(client, spreadsheet_id):
10 schema = Schema.from_dict(schema_dict) 10 schema = Schema.from_dict(schema_dict)
11 mdata = field_metadata[stream_name] 11 mdata = field_metadata[stream_name]
12 key_properties = None 12 key_properties = None
13 for md in mdata: 13 for mdt in mdata:
14 table_key_properties = md.get('metadata', {}).get('table-key-properties') 14 table_key_properties = mdt.get('metadata', {}).get('table-key-properties')
15 if table_key_properties: 15 if table_key_properties:
16 key_properties = table_key_properties 16 key_properties = table_key_properties
17 17
18 catalog.streams.append(CatalogEntry( 18 catalog.streams.append(CatalogEntry(
19 stream=stream_name, 19 stream=stream_name,
20 tap_stream_id=stream_name, 20 tap_stream_id=stream_name,