8000 Fixes boolean checks for site requests payloads (#723) · tableau/server-client-python@74348f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74348f3

Browse files
author
Chris Shin
authored
Fixes boolean checks for site requests payloads (#723)
1 parent c74b95c commit 74348f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tableauserverclient/server/request_factory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,13 +455,13 @@ def update_req(self, site_item):
455455
site_element.attrib['state'] = site_item.state
456456
if site_item.storage_quota:
457457
site_element.attrib['storageQuota'] = str(site_item.storage_quota)
458-
if site_item.disable_subscriptions:
458+
if site_item.disable_subscriptions is not None:
459459
site_element.attrib['disableSubscriptions'] = str(site_item.disable_subscriptions).lower()
460-
if site_item.subscribe_others_enabled:
460+
if site_item.subscribe_others_enabled is not None:
461461
site_element.attrib['subscribeOthersEnabled'] = str(site_item.subscribe_others_enabled).lower()
462462
if site_item.revision_limit:
463463
site_element.attrib['revisionLimit'] = str(site_item.revision_limit)
464-
if site_item.subscribe_others_enabled:
464+
if site_item.subscribe_others_enabled is not None:
465465
site_element.attrib['revisionHistoryEnabled'] = str(site_item.revision_history_enabled).lower()
466466
if site_item.data_acceleration_mode is not None:
467467
site_element.attrib['dataAccelerationMode'] = str(site_item.data_acceleration_mode).lower()
@@ -482,7 +482,7 @@ def create_req(self, site_item):
482482
site_element.attrib['userQuota'] = str(site_item.user_quota)
483483
if site_item.storage_quota:
484484
site_element.attrib['storageQuota'] = str(site_item.storage_quota)
485-
if site_item.disable_subscriptions:
485+
if site_item.disable_subscriptions is not None:
486486
site_element.attrib['disableSubscriptions'] = str(site_item.disable_subscriptions).lower()
487487
if site_item.flows_enabled is not None:
488488
site_element.attrib['flowsEnabled'] = str(site_item.flows_enabled).lower()

0 commit comments

Comments
 (0)
0