Skip to content

Commit 93cdc64

Browse files
committed
Fix column order in basic CSV format
The material was in the wrong location after an earlier refactor.
1 parent 1514bfd commit 93cdc64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/format.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ def item_to_dict(self, item):
8484
fields = self.fieldnames
8585
return {
8686
fields[0]: item.count,
87-
fields[1]: self.format_value(item.dimensions.length),
88-
fields[2]: self.format_value(item.dimensions.width),
89-
fields[3]: self.format_value(item.dimensions.height),
90-
fields[4]: item.material,
87+
fields[1]: item.material,
88+
fields[2]: self.format_value(item.dimensions.length),
89+
fields[3]: self.format_value(item.dimensions.width),
90+
fields[4]: self.format_value(item.dimensions.height),
9191
fields[5]: ','.join(item.names),
9292
}
9393

0 commit comments

Comments
 (0)