Skip to content
Snippets Groups Projects
Commit ca3477ba authored by sylvainczx's avatar sylvainczx
Browse files

Minor parsing issue

parent 342bfd27
Branches main
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment