summaryrefslogtreecommitdiff
path: root/jfr_playoff/matchinfo.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-07-06 01:09:50 +0200
committeremkael <emkael@tlen.pl>2018-07-06 01:23:19 +0200
commite1f1f59ecbdf749a215e631438efaf7ddc20c247 (patch)
treede4cc7bfeb71d350ba183fa0e4a70173a6bbdadc /jfr_playoff/matchinfo.py
parente197341c6f2a234b6c2b266450b8564a9125fcc1 (diff)
Storing information about seeding from starting positions in match info object
Diffstat (limited to 'jfr_playoff/matchinfo.py')
-rw-r--r--jfr_playoff/matchinfo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py
index 93b997a..5a31577 100644
--- a/jfr_playoff/matchinfo.py
+++ b/jfr_playoff/matchinfo.py
@@ -187,6 +187,10 @@ class MatchInfo:
'fetching HTML scores for match #%d failed: %s(%s)',
self.info.id, type(e).__name__, str(e))
self.info.teams = self.__get_config_teams(self.info.teams)
+ for team in range(0, len(self.info.teams)):
+ if 'place' in self.config['teams'][team]:
+ self.info.teams[team].place = self.config['teams'][team]['place']
+
def __get_db_board_count(self):
towels = self.database.fetch(