diff --git a/tap_google_sheets/streams.py b/tap_google_sheets/streams.py index f2a84e0..32f3e1a 100644 --- a/tap_google_sheets/streams.py +++ b/tap_google_sheets/streams.py @@ -17,15 +17,12 @@ class GoogleSheetsStream(GoogleSheetsBaseStream): child_sheet_name = None primary_key = None + url_base = "https://sheets.googleapis.com/v4/spreadsheets" @property def path(self): """Set the path for the stream.""" - self.url_base = "https://sheets.googleapis.com/v4/spreadsheets/" - path = ( - self.url_base + self.config["sheet_id"] + "/values/" + self.child_sheet_name - ) - return path + return f"/{self.config['sheet_id']}/values/{self.child_sheet_name}" def parse_response(self, response: requests.Response) -> Iterable[dict]: """Parse response, build response back up into json, update stream schema."""