From c331e563768a750d618a7fa81ff666b41121a541 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 31 Jan 2020 21:16:13 +0100 Subject: Proper detection of Cezar errors --- http/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http/index.py b/http/index.py index 7b672b6..970ebfc 100644 --- a/http/index.py +++ b/http/index.py @@ -109,7 +109,8 @@ def handler(req): # unnecessary tables removed for table in page_content.select('table > tr > td > table')[4:]: table.extract() - if u'Lista' not in [b.text for b in page_content.select('b')]: + if u'Lista' not in [b.text for b in page_content.select('b')] and \ + u'Błąd' not in [b.text for b in page_content.select('b')]: page_content.select('table > tr > td')[-1].extract() # internal link targets (team, WK breakdown, etc.) removed -- cgit v1.2.3