X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tap_google_sheets%2Fdiscover.py;h=6cf0d09b3f0c1f65bd077cd825c38e5d0a2963f8;hb=99424fee5ba6ff830df39be8f47c3e3d685b444a;hp=6477a5f92e99756a5e2731b6f5dc805abc0b8478;hpb=da690bda91ea6a14964a2378e5dbb5d4de91a7e2;p=github%2Ffretlink%2Ftap-google-sheets.git 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): schema = Schema.from_dict(schema_dict) mdata = field_metadata[stream_name] key_properties = None - for md in mdata: - table_key_properties = md.get('metadata', {}).get('table-key-properties') + for mdt in mdata: + table_key_properties = mdt.get('metadata', {}).get('table-key-properties') if table_key_properties: key_properties = table_key_properties - + catalog.streams.append(CatalogEntry( stream=stream_name, tap_stream_id=stream_name,