From 247e2f4ca86914ab996eaf5bafb84620bf5a2567 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 22 Feb 2018 11:30:13 +0100 Subject: Bugfix: properly mark averaged boards as played when fetching from results page --- jfr_playoff/matchinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jfr_playoff') 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 -- cgit v1.2.3