diff options
author | emkael <emkael@tlen.pl> | 2018-02-21 14:09:05 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-02-21 14:09:05 +0100 |
commit | ccc54fde2f8c9301962e9c6f464d5f2eacd5506a (patch) | |
tree | 21a2f05ea664065d1aa98a3c69d58d6c14afdf59 /jfr_playoff/tournamentinfo.py | |
parent | 415748f29a6b3048bef08703a93c4f441f67d1eb (diff) |
Not rendering phase/match links if they're not set
Fixes #13
Diffstat (limited to 'jfr_playoff/tournamentinfo.py')
-rw-r--r-- | jfr_playoff/tournamentinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/tournamentinfo.py b/jfr_playoff/tournamentinfo.py index dee34f3..90637bc 100644 --- a/jfr_playoff/tournamentinfo.py +++ b/jfr_playoff/tournamentinfo.py @@ -123,7 +123,7 @@ class TournamentInfo: teams = self.__get_html_results() except (TypeError, IndexError, KeyError, IOError, ValueError): pass - if 'final_positions' in self.settings: + if self.is_finished() and 'final_positions' in self.settings: for position in self.settings['final_positions']: if len(teams) >= position: teams[position-1].append(position) |