File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tableauserverclient/server Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -374,15 +374,16 @@ def update_req(self, workbook_item):
374
374
workbook_element = ET .SubElement (xml_request , 'workbook' )
375
375
if workbook_item .name :
376
376
workbook_element .attrib ['name' ] = workbook_item .name
377
- if workbook_item .show_tabs :
377
+ if workbook_item .show_tabs is not None :
378
378
workbook_element .attrib ['showTabs' ] = str (workbook_item .show_tabs ).lower ()
379
379
if workbook_item .project_id :
380
380
project_element = ET .SubElement (workbook_element , 'project' )
381
381
project_element .attrib ['id' ] = workbook_item .project_id
382
382
if workbook_item .owner_id :
383
383
owner_element = ET .SubElement (workbook_element , 'owner' )
384
384
owner_element .attrib ['id' ] = workbook_item .owner_id
385
- if workbook_item .materialized_views_config is not None :
385
+ if workbook_item .materialized_views_config ['materialized_views_enabled' ]\
386
+ and workbook_item .materialized_views_config ['run_materialization_now' ]:
386
387
materialized_views_config = workbook_item .materialized_views_config
387
388
materialized_views_element = ET .SubElement (workbook_element , 'materializedViewsEnablementConfig' )
388
389
materialized_views_element .attrib ['materializedViewsEnabled' ] = str (materialized_views_config
You can’t perform that action at this time.
0 commit comments