Skip to content

Commit

Permalink
Fix table indexing returning the entire table
Browse files Browse the repository at this point in the history
  • Loading branch information
Belval committed Aug 20, 2024
1 parent 5764d4b commit e608576
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion textractor/entities/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ def __getitem__(self, key):
new_table_cells = _get_new_table_cells(rows, filtered_rows)

new_table = deepcopy(self)
new_table.add_cells(new_table_cells)
new_table.table_cells = new_table_cells
new_table._children = new_table_cells

return new_table

Expand Down

0 comments on commit e608576

Please sign in to comment.