From 883e9b84a00363eb27dc0d3cbef8fafd6ea88cab Mon Sep 17 00:00:00 2001 From: fdelgadodyvenia Date: Mon, 30 Sep 2024 15:01:57 +0100 Subject: [PATCH 1/2] added report_url argument --- src/viadot/sources/cloud_for_customers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viadot/sources/cloud_for_customers.py b/src/viadot/sources/cloud_for_customers.py index 57ae97cac..74a34dff8 100644 --- a/src/viadot/sources/cloud_for_customers.py +++ b/src/viadot/sources/cloud_for_customers.py @@ -284,7 +284,7 @@ def get_response( return handle_api_response( url=url, params=filter_params, - auth=(username, password), + auth=(username, password._secret_value), timeout=timeout, ) @@ -318,7 +318,7 @@ def to_df( tests: dict[str, Any] = kwargs.get("tests", {}) url = url or self.url - records = self.extract_records(url=url) + records = self.extract_records(url=url, report_url=self.report_url) df = pd.DataFrame(data=records, **kwargs) if dtype: From 7826b5475458589d67d914fc51e2427f8acba6f7 Mon Sep 17 00:00:00 2001 From: rziemianek Date: Fri, 4 Oct 2024 13:58:04 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=A8=20Added=20`get=5Fsecret=5Fvalue`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/viadot/sources/cloud_for_customers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viadot/sources/cloud_for_customers.py b/src/viadot/sources/cloud_for_customers.py index 74a34dff8..6a7fdba1c 100644 --- a/src/viadot/sources/cloud_for_customers.py +++ b/src/viadot/sources/cloud_for_customers.py @@ -284,7 +284,7 @@ def get_response( return handle_api_response( url=url, params=filter_params, - auth=(username, password._secret_value), + auth=(username, password.get_secret_value()), timeout=timeout, )