f63f9c2a by 周伟奇

fix bug

1 parent d2fa3682
......@@ -406,9 +406,9 @@ class Command(BaseCommand, LoggerMixin):
else:
sheet_name, key_field, side_field_order, field_order = self.field_map[result[self.CLASSIFY_KEY]]
if key_field is not None and key_field in result[self.RESULT_KEY]:
head_fields = [b for _, b in side_field_order]
head_fields = [a for a, _ in side_field_order]
else:
head_fields = [b for _, b in field_order]
head_fields = [a for a, _ in field_order]
row = []
for field in head_fields:
row.append(result[self.RESULT_KEY].get(field))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!