Skip to content

Commit

Permalink
Force all xlsx output values as strings #46
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Dec 11, 2020
1 parent 7e158fa commit 48f5572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scanpipe/pipes/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def _queryset_to_xlsx_worksheet(queryset, workbook):
elif isinstance(value, dict):
value = json.dumps(value) if value else ""

worksheet.write(row_index, col_index, value)
if value:
worksheet.write_string(row_index, col_index, str(value))


def to_xlsx(project):
Expand Down

0 comments on commit 48f5572

Please sign in to comment.