From c149860243cb20b5b91aac0d9ba110f0ce34ce15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lan=C4=8D?= Date: Thu, 18 Apr 2024 16:13:04 +0200 Subject: [PATCH] fix: get properly child_sheet_name when sheets are defined in config --- tap_google_sheets/tap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_google_sheets/tap.py b/tap_google_sheets/tap.py index 356ae9d..498dc47 100644 --- a/tap_google_sheets/tap.py +++ b/tap_google_sheets/tap.py @@ -86,7 +86,7 @@ def discover_streams(self) -> List[Stream]: stream_schema = self.get_schema(google_sheet_data) - child_sheet_name = self.config.get( + child_sheet_name = stream_config.get( "child_sheet_name" ) or self.get_first_visible_child_sheet_name(google_sheet_data)