aboutsummaryrefslogtreecommitdiffhomepage
path: root/tap_google_sheets/discover.py
diff options
context:
space:
mode:
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,