summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-01-31 21:16:13 +0100
committeremkael <emkael@tlen.pl>2020-01-31 21:16:13 +0100
commitc331e563768a750d618a7fa81ff666b41121a541 (patch)
tree62a76c8dd7db8351e6f34e4d211c228f40bae4d0
parentd0c0d03f2a8ec7609f1533a9868b20120da04ef6 (diff)
Proper detection of Cezar errorsHEADmaster
-rw-r--r--http/index.py3
1 files changed, 2 insertions, 1 deletions
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