diff --git a/src/parser/parser.py b/src/parser/parser.py index 7876fcbcaafe25f99cfb26232be7c796c1b8186c..c916698890cc90daaa8f9d0fa37c9df400b8c108 100644 --- a/src/parser/parser.py +++ b/src/parser/parser.py @@ -169,7 +169,7 @@ class Parser(ABC): :param str table_name: Name of the table to find :return list(Cell): Cells of the table """ - for table in worksheet._tables: + for table in worksheet.tables.values(): if table.name == table_name: return worksheet[table.ref] raise TitanParsingError("Table " + table_name + " does not exist in sheet " + str(worksheet)) @@ -182,7 +182,7 @@ class Parser(ABC): :param str table_name: Name of the table to find :return boolean: if the table is empty """ - for table in worksheet._tables: + for table in worksheet.tables.values(): if table.name == table_name: cells = worksheet[table.ref] if len(cells) == 2: