From 4ca0ac5f03fbf34652a902d6af20fac99f1d5a5b Mon Sep 17 00:00:00 2001 From: v6shah <127991518+v6shah@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:58:33 -0800 Subject: [PATCH] creating new folder bug patch --- tableaudocumentapi/datasource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tableaudocumentapi/datasource.py b/tableaudocumentapi/datasource.py index 553ab8f..29d6a38 100644 --- a/tableaudocumentapi/datasource.py +++ b/tableaudocumentapi/datasource.py @@ -283,7 +283,7 @@ def add_folder(self, name, role=None): raise NotImplementedError # trick is to find the first folder tag and add to it - folder_xml = self._datasourceTree.find(".//folder")[0] + folder_xml = self._datasourceTree.find(".//folder") folder_parent = folder_xml.getparent() folder_parent.addnext(folder.xml)