Skip to content

Commit 3773875

Browse files
committed
fix: typo
1 parent 3444858 commit 3773875

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tableauserverclient/models/project_item.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class corresponds to the project resources you can access using the Tableau
6060
view_count : int
6161
The number of views in the project.
6262
63-
workbok_count : int
63+
workbook_count : int
6464
The number of workbooks in the project.
6565
6666
writeable : bool
@@ -110,7 +110,7 @@ def __init__(
110110
self._default_table_permissions = None
111111

112112
self._project_count: Optional[int] = None
113-
self._workbok_count: Optional[int] = None
113+
self._workbook_count: Optional[int] = None
114114
self._view_count: Optional[int] = None
115115
self._datasource_count: Optional[int] = None
116116

@@ -218,8 +218,8 @@ def project_count(self) -> Optional[int]:
218218
return self._project_count
219219

220220
@property
221-
def workbok_count(self) -> Optional[int]:
222-
return self._workbok_count
221+
def workbook_count(self) -> Optional[int]:
222+
return self._workbook_count
223223

224224
@property
225225
def view_count(self) -> Optional[int]:
@@ -247,7 +247,7 @@ def _set_values(
247247
top_level_project,
248248
writeable,
249249
project_count,
250-
workbok_count,
250+
workbook_count,
251251
view_count,
252252
datasource_count,
253253
owner,
@@ -266,8 +266,8 @@ def _set_values(
266266
self._owner_id = owner_id
267267
if project_count is not None:
268268
self._project_count = project_count
269-
if workbok_count is not None:
270-
self._workbok_count = workbok_count
269+
if workbook_count is not None:
270+
self._workbook_count = workbook_count
271271
if view_count is not None:
272272
self._view_count = view_count
273273
if datasource_count is not None:
@@ -323,12 +323,12 @@ def _parse_element(project_xml: ET.Element, namespace: Optional[dict]) -> tuple:
323323
owner_id = owner_elem.get("id", None)
324324

325325
project_count = None
326-
workbok_count = None
326+
workbook_count = None
327327
view_count = None
328328
datasource_count = None
329329
if (count_elem := project_xml.find(".//t:contentsCounts", namespaces=namespace)) is not None:
330330
project_count = int(count_elem.get("projectCount", 0))
331-
workbok_count = int(count_elem.get("workbookCount", 0))
331+
workbook_count = int(count_elem.get("workbookCount", 0))
332332
view_count = int(count_elem.get("viewCount", 0))
333333
datasource_count = int(count_elem.get("dataSourceCount", 0))
334334

@@ -342,7 +342,7 @@ def _parse_element(project_xml: ET.Element, namespace: Optional[dict]) -> tuple:
342342
top_level_project,
343343
writeable,
344344
project_count,
345-
workbok_count,
345+
workbook_count,
346346
view_count,
347347
datasource_count,
348348
owner,

0 commit comments

Comments
 (0)