We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b9b663 + 25a59d0 commit 400c966Copy full SHA for 400c966
1 file changed
tableauserverclient/server/endpoint/workbooks_endpoint.py
@@ -88,8 +88,8 @@ def get_by_id(self, workbook_id: str) -> WorkbookItem:
88
return WorkbookItem.from_response(server_response.content, self.parent_srv.namespace)[0]
89
90
@api(version="2.8")
91
- def refresh(self, workbook_id: str) -> JobItem:
92
- id_ = getattr(workbook_id, "id", workbook_id)
+ def refresh(self, workbook_item: Union[WorkbookItem, str]) -> JobItem:
+ id_ = getattr(workbook_item, "id", workbook_item)
93
url = "{0}/{1}/refresh".format(self.baseurl, id_)
94
empty_req = RequestFactory.Empty.empty_req()
95
server_response = self.post_request(url, empty_req)
0 commit comments