Skip to content

Commit

Permalink
fix flake8 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfermigier committed May 14, 2020
1 parent 9df82a3 commit 08df0d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion olapy/core/mdx/executor/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def execute_one_tuple(self, tuple_as_list, dataframe_in, columns_to_keep):
# execute : df[(df['Continent'] == 'America')] and
# df[(df['Country'] == 'US')]
# elif len(tuple_as_list) > 3:
for idx, tup_att in enumerate(tuple_as_list[2:]):
for tup_att in tuple_as_list[2:]:

# df[(df['Year'] == 2010)]
# 2010 must be as int, otherwise , pandas generate exception
Expand Down
2 changes: 1 addition & 1 deletion olapy/core/services/xmla_execute_request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _gen_xs0_tuples(self, xml, tupls, **kwargs):
# [Geography].[Geography].[Continent] -> first_lvlname : Country
# [Geography].[Geography].[Europe] -> first_lvlname : Europe
all_level_columns = self._get_lvl_column_by_dimension(all_tuples)
for idx, tupl in enumerate(tupls):
for tupl in tupls:
tuple_without_minus_1 = self.get_tuple_without_nan(tupl)
current_lvl_name = split_df[tuple_without_minus_1[0]].columns[
len(tuple_without_minus_1) - first_att
Expand Down

0 comments on commit 08df0d7

Please sign in to comment.