summaryrefslogtreecommitdiff
path: root/jfr_playoff/matchinfo.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-22 11:30:13 +0100
committeremkael <emkael@tlen.pl>2018-02-22 11:30:13 +0100
commit247e2f4ca86914ab996eaf5bafb84620bf5a2567 (patch)
tree9003d3bdc9a925757b67b31d97377c87423effaf /jfr_playoff/matchinfo.py
parentc69cade1b7dcecfbdb45a2da59bafa6f1a0bf7ea (diff)
Bugfix: properly mark averaged boards as played when fetching from results page
Diffstat (limited to 'jfr_playoff/matchinfo.py')
-rw-r--r--jfr_playoff/matchinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py
index 1f6446e..538c67d 100644
--- a/jfr_playoff/matchinfo.py
+++ b/jfr_playoff/matchinfo.py
@@ -200,7 +200,7 @@ class MatchInfo:
board_count = len(board_rows)
played_boards = len([
row for row in board_rows if len(
- ''.join([cell.text.strip() for cell in row.select('td.bdn') + row.select('td.bde')])) > 0])
+ ''.join([cell.text.strip() for cell in row.select('td.bdc')])) > 0])
return board_count, played_boards >= board_count
except IOError:
return 0, False