Skip to content

Commit

Permalink
Check first dimension is Sandboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewise-gng authored and MariusWirtz committed Oct 11, 2022
1 parent fda1d0e commit 75b93e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TM1py/Utils/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def build_content_from_cellset_dict(
:return:
"""
cube_dimensions = [dim['Name'] for dim in raw_cellset_as_dict['Cube']['Dimensions']]
if skip_sandbox_dimension:
if skip_sandbox_dimension and cube_dimensions[0].lower() == "sandboxes":
cube_dimensions = cube_dimensions[1:]

cells = raw_cellset_as_dict['Cells']
Expand Down

0 comments on commit 75b93e4

Please sign in to comment.