Skip to content

Commit

Permalink
fix: write_column should be a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollorion committed May 31, 2024
1 parent 2b86c34 commit c392eb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ insert_final_newline = true
indent_size = 2
indent_style = space
trim_trailing_whitespace = true

[*.py]
indent_size = 4
4 changes: 2 additions & 2 deletions spacemk/exporters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ def _save_report_to_file(self, data: dict) -> None:
column = 0
for key, value in sorted(pivoted_entity_type_data.items()):
# Skip data structures
if type(value) in [dict, list, tuple, set]:
if type(value) in [dict, tuple, set]:
continue

worksheet.write(0, column, key)
worksheet.write_column(1, column, value)
worksheet.write_column(1, column, value if isinstance(value, list) else [value])
column += 1

workbook.close()
Expand Down

0 comments on commit c392eb2

Please sign in to comment.