Skip to content

Commit

Permalink
fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtis Stallings committed Dec 5, 2023
1 parent 0e481a7 commit 4dfa2a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pytabular/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def query_all(self, query_function: str = "COUNTROWS(VALUES(_))") -> pd.DataFram
table_name = column.Table.get_Name()
column_name = column.get_Name()
dax_identifier = f"'{table_name}'[{column_name}]"
query_str += f"ROW(\"Table\",\"{table_name}\",\
query_str += f"""ROW(\"Table\",\"{table_name}\",\
\"Column\",\"{column_name}\",\"{query_function}\",\
{query_function.replace('_',dax_identifier)}), \n"
{query_function.replace('_',dax_identifier)}),\n"""
query_str = f"{query_str[:-2]})"
return self[0].Table.Model.query(query_str)
4 changes: 2 additions & 2 deletions pytabular/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def query_all(self, query_function: str = "COUNTROWS(_)") -> pd.DataFrame:
for table in self:
table_name = table.get_Name()
dax_table_identifier = f"'{table_name}'"
query_str += f"ROW(\"Table\",\"{table_name}\",\"{query_function}\",\
{query_function.replace('_',dax_table_identifier)}), \n"
query_str += f"""ROW(\"Table\",\"{table_name}\",\"{query_function}\",\
{query_function.replace('_',dax_table_identifier)}),\n"""
query_str = f"{query_str[:-2]})"
return self[0].Model.query(query_str)

Expand Down

0 comments on commit 4dfa2a8

Please sign in to comment.