Skip to content

Commit

Permalink
Merge branch 'support-transforms-#158497157' into rel-5.2.105
Browse files Browse the repository at this point in the history
  • Loading branch information
Crunch.io Jenkins Account committed Jun 26, 2018
2 parents da16e28 + 9da94fc commit fdc6aa8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cr/cube/cube_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ def _update_result(self, result):
def _call_cube_method(self, method, *args, **kwargs):
kwargs = self._update_args(kwargs)
result = getattr(self._cube, method)(*args, **kwargs)
if method in ('labels', 'inserted_hs_indices') and not self.ca_as_0th:
return result[-2:]
if method in ('labels', 'inserted_hs_indices'):
if not self.ca_as_0th:
result = result[-2:]
return result
return self._update_result(result)

@property
Expand Down

0 comments on commit fdc6aa8

Please sign in to comment.