Skip to content

Commit

Permalink
fixed issue 235
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Nov 4, 2024
1 parent a796339 commit 0061f78
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 0061f78

Please sign in to comment.