Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/sempy_labs/report/_reportwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,7 @@ def set_theme(self, theme_file_path: str):

theme_name = json_file["name"]
theme_name_full = f"{theme_name}.json"
rd = self.rdef

# Add theme.json file to request_body
file_payload = _conv_b64(json_file)
Expand All @@ -1345,11 +1346,12 @@ def set_theme(self, theme_file_path: str):
"type": "CustomTheme",
}

rd = self.rdef
for _, r in rd.iterrows():
path = r["path"]
payload = r["payload"]
if path != report_path:
if path == filePath:
pass
elif path != report_path:
_add_part(request_body, path, payload)
# Update the report.json file
else:
Expand Down
Loading