e9bc46f2 by 周伟奇

fix bug

1 parent 4fad0d1f
...@@ -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']))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!