Skip to content

Commit 32c54fe

Browse files
committed
Add slab to legacy mode
1 parent 7b8c9dc commit 32c54fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MLStructFP/db/_db_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def tabulate(self, limit: int = 0, legacy: bool = False,
190190
('Project ID', 'Project label', 'Floor ID', 'Cat', 'Elev',
191191
'Rects', 'Points', 'Slabs', 'Rooms', 'Items', 'Floor image path'
192192
) if not legacy else
193-
('Floor ID', 'Rects', 'Floor image path')
193+
('Floor ID', 'Rects', 'Slabs', 'Floor image path')
194194
):
195195
theads.append(t)
196196
table = [theads]
@@ -205,7 +205,7 @@ def tabulate(self, limit: int = 0, legacy: bool = False,
205205
(f.project_id, f.project_label, f.id, f.category, 1 if f.elevation else 0,
206206
len(f.rect), len(f.point), len(f.slab), len(f.room), len(f.item), f_file
207207
) if not legacy else
208-
(f.id, len(f.rect), f_file)
208+
(f.id, len(f.rect), len(f.slab), f_file)
209209
):
210210
table_data.append(i)
211211
table.append(table_data)

0 commit comments

Comments
 (0)