diff options
author | emkael <emkael@tlen.pl> | 2018-02-17 12:54:47 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-02-17 12:54:47 +0100 |
commit | fef0d2d2651182da000c67e22ad7a6695f856811 (patch) | |
tree | 1b542b66f389079bff91d5a07db51be68a8f6629 | |
parent | 4fc38705913b06abe2c9aef80d6db349d27c3232 (diff) |
Consistent method naming
-rw-r--r-- | jfr_playoff/matchinfo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py index cb5f616..1df6305 100644 --- a/jfr_playoff/matchinfo.py +++ b/jfr_playoff/matchinfo.py @@ -15,7 +15,7 @@ class MatchInfo: self.database = database self.info = Match() self.__init_info() - self.__get_match_link() + self.__fetch_match_link() def __init_info(self): self.info.id = self.config['id'] @@ -32,7 +32,7 @@ class MatchInfo: self.info.loser_matches = list(set(self.info.loser_matches)) self.info.teams = [] - def __fetch_link(self, suffix): + def __get_link(self, suffix): try: row = self.database.fetch( self.config['database'], p_sql.PREFIX, ()) @@ -43,11 +43,11 @@ class MatchInfo: return None return None - def __get_match_link(self): + def __fetch_match_link(self): if 'link' in self.config: self.info.link = self.config['link'] else: - self.info.link = self.__fetch_link( + self.info.link = self.__get_link( 'runda%d.html' % (self.config['round'])) def __get_predefined_scores(self): |