From 4be2f7b9dbfe3aea182bb88042d7a7ba9b932398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lan=C4=8D?= Date: Thu, 18 Apr 2024 17:04:03 +0200 Subject: [PATCH] fix: get properly child_sheet_name when sheets are defined in config (#24) --- 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)