e9bc46f2 by 周伟奇

fix bug

1 parent 4fad0d1f
......@@ -706,7 +706,8 @@ class BSWorkbook(Workbook):
ws = self.create_sheet(label)
for key, value in result_dict.items():
if isinstance(value, list):
ws.append((key, *value))
value_list = [dict_item.get('words') for dict_item in value]
ws.append((key, *value_list))
elif isinstance(value, dict):
if 'words' in value:
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!