fix bug
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -706,7 +706,8 @@ class BSWorkbook(Workbook): | ... | @@ -706,7 +706,8 @@ class BSWorkbook(Workbook): |
706 | ws = self.create_sheet(label) | 706 | ws = self.create_sheet(label) |
707 | for key, value in result_dict.items(): | 707 | for key, value in result_dict.items(): |
708 | if isinstance(value, list): | 708 | if isinstance(value, list): |
709 | ws.append((key, *value)) | 709 | value_list = [dict_item.get('words') for dict_item in value] |
710 | ws.append((key, *value_list)) | ||
710 | elif isinstance(value, dict): | 711 | elif isinstance(value, dict): |
711 | if 'words' in value: | 712 | if 'words' in value: |
712 | ws.append((key, value['words'])) | 713 | ws.append((key, value['words'])) | ... | ... |
-
Please register or sign in to post a comment