Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sylvain CAZAUX
TiTAN
Commits
ca3477ba
Commit
ca3477ba
authored
Jul 10, 2021
by
sylvainczx
Browse files
Minor parsing issue
parent
342bfd27
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parser/parser.py
View file @
ca3477ba
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment