Skip to content

Commit

Permalink
Fix an error of exporting dict value as Excel (#3323)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshidajp authored and arikfr committed Jan 22, 2019
1 parent 8bdcfb0 commit c4bf446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def make_excel_content(self):
for (r, row) in enumerate(query_data['rows']):
for (c, name) in enumerate(column_names):
v = row.get(name)
if isinstance(v, list):
if isinstance(v, list) or isinstance(v, dict):
v = str(v).encode('utf-8')
sheet.write(r + 1, c, v)

Expand Down

0 comments on commit c4bf446

Please sign in to comment.