From 27ae93a7245576ac6e88e3eed8df7366ae0b9dc3 Mon Sep 17 00:00:00 2001 From: Bryant Howell Date: Thu, 27 Feb 2020 14:50:49 -0600 Subject: [PATCH] Type was breaking publish_workbook in versions before 30 --- setup.py | 2 +- tableau_rest_api/methods/workbook.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4ba1feb..72c0965 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='tableau_tools', python_requires='>=3.6', - version='5.1.2', + version='5.1.3', packages=['tableau_tools', 'tableau_tools.tableau_rest_api', 'tableau_tools.tableau_documents', 'tableau_tools.examples', 'tableau_tools.tableau_rest_api.methods'], url='https://github.com/bryantbhowell/tableau_tools', diff --git a/tableau_rest_api/methods/workbook.py b/tableau_rest_api/methods/workbook.py index 5be9c9e..3f3a4fa 100644 --- a/tableau_rest_api/methods/workbook.py +++ b/tableau_rest_api/methods/workbook.py @@ -374,7 +374,7 @@ def publish_workbook(self, workbook_filename: str, workbook_name: str, project_o show_tabs: bool = True, check_published_ds: bool = True, oauth_flag: bool = False) -> str: project_luid = project_obj.luid - xml = self.publish_content('workbook', workbook_filename, workbook_name, project_luid, + xml = self._publish_content('workbook', workbook_filename, workbook_name, project_luid, {"overwrite": overwrite}, connection_username, connection_password, save_credentials, show_tabs=show_tabs, check_published_ds=check_published_ds, oauth_flag=oauth_flag)