diff options
author | emkael <emkael@tlen.pl> | 2019-12-30 12:34:48 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-12-30 12:34:48 +0100 |
commit | f77bac9b5406c6bf6b1c819f155164568ef4af36 (patch) | |
tree | 972f2851f7ebe76842ff668bce0002ed961a43fe /jfr_playoff/matchinfo.py | |
parent | 5a5326bf17a4ed3402255493efefd69544afe0d0 (diff) |
Preparing result info class refactoring
Diffstat (limited to 'jfr_playoff/matchinfo.py')
-rw-r--r-- | jfr_playoff/matchinfo.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py index fad8155..9d48b57 100644 --- a/jfr_playoff/matchinfo.py +++ b/jfr_playoff/matchinfo.py @@ -4,10 +4,11 @@ from urlparse import urljoin import jfr_playoff.sql as p_sql from jfr_playoff.dto import Match, Team from jfr_playoff.remote import RemoteUrl as p_remote +from jfr_playoff.data import ResultInfo from jfr_playoff.tournamentinfo import TournamentInfo from jfr_playoff.logger import PlayoffLogger -class MatchInfo: +class MatchInfo(ResultInfo): matches = {} @@ -20,10 +21,14 @@ class MatchInfo: for team, team_aliases in aliases.iteritems(): for alias in team_aliases: self.aliases[alias] = team + ResultInfo.__init__(self, match_config, database) self.info = Match() self.__init_info() self.__fetch_match_link() + def fill_client_list(self, settings, database): + return [] + def __init_info(self): self.info.id = self.config['id'] MatchInfo.matches[self.info.id] = self.info @@ -363,8 +368,8 @@ class MatchInfo: pass if boards_played > 0: self.info.running = -1 \ - if boards_played >= boards_to_play \ - else boards_played + if boards_played >= boards_to_play \ + else boards_played def __determine_outcome(self): if (self.info.teams[0].known_teams == 1) \ |