Remove empty template line
This commit is contained in:
parent
5405efbbc4
commit
6e56f90b6b
|
@ -20,6 +20,8 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def not_empty(obj: et._Element) -> bool:
|
def not_empty(obj: et._Element) -> bool:
|
||||||
if type(obj) is et._Element:
|
if type(obj) is et._Element:
|
||||||
|
if "lfr-template" in obj.attrib.get("class"):
|
||||||
|
return False
|
||||||
children = len(obj.xpath(".//td"))
|
children = len(obj.xpath(".//td"))
|
||||||
return children in (5, 6)
|
return children in (5, 6)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user