From 6e56f90b6bfe95d271894740a6d09e5cc22652a7 Mon Sep 17 00:00:00 2001 From: Blallo Date: Mon, 6 May 2024 01:10:23 +0200 Subject: [PATCH] Remove empty template line --- latecomers/parse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/latecomers/parse.py b/latecomers/parse.py index 2bce84b..15c27d3 100644 --- a/latecomers/parse.py +++ b/latecomers/parse.py @@ -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)