Remove empty template line

This commit is contained in:
sfigato 2024-05-06 01:10:23 +02:00
parent 5405efbbc4
commit 6e56f90b6b
Signed by: blallo
GPG Key ID: C530464EEDCF489A

View File

@ -20,6 +20,8 @@ logger = logging.getLogger(__name__)
def not_empty(obj: et._Element) -> bool:
if type(obj) is et._Element:
if "lfr-template" in obj.attrib.get("class"):
return False
children = len(obj.xpath(".//td"))
return children in (5, 6)