Skip to content

Commit

Permalink
TLDR-474 remove insert_table parameter (#339)
Browse files Browse the repository at this point in the history
* TLDR-474 remove insert_table parameter

* TLDR-474 remove is_inserted attribute
  • Loading branch information
NastyBoget authored and sunveil committed Oct 11, 2023
1 parent c03b17e commit 9c15929
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def __get_tables(self, page: dict, file_hash: str) -> Tuple[List[Table], List[Sc

result_cells.append(result_row)
table_bbox = BBox.from_two_points((x_top_left, y_top_left), (x_bottom_right, y_bottom_right)) # noqa TODO add table location into TableMetadata
tables.append(Table(cells=result_cells, metadata=TableMetadata(page_id=page_number, is_inserted=False)))
tables.append(Table(cells=result_cells, metadata=TableMetadata(page_id=page_number)))
table_name = file_hash + str(page_number) + str(table_num)
tables_on_image.append(ScanTable(page_number=page_number, matrix_cells=None, bbox=table_bbox, name=table_name, order=order))

Expand Down

0 comments on commit 9c15929

Please sign in to comment.