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 28, 2024
1 parent 2b86c34 commit ab94c2f
Show file tree
Hide file tree
Showing 3 changed files with 6 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
methods in GitHub).
- Go to the Migration Kit folder: `spacelift-migration-kit`.
- Install the Python dependencies and the `spacemk` command in a Python virtual environment: `poetry install`.
- To install poetry: `pip install poetry`.
- Activate the Python virtual environment: `poetry shell`.

## Usage
Expand Down
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 type(value) is list else [value])
column += 1

workbook.close()
Expand Down

0 comments on commit ab94c2f

Please sign in to comment.