]> git.immae.eu Git - github/fretlink/tap-google-sheets.git/blobdiff - tap_google_sheets/discover.py
pylint and testing
[github/fretlink/tap-google-sheets.git] / tap_google_sheets / discover.py
index 6477a5f92e99756a5e2731b6f5dc805abc0b8478..6cf0d09b3f0c1f65bd077cd825c38e5d0a2963f8 100644 (file)
@@ -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,