diff options
author | emkael <emkael@tlen.pl> | 2018-09-28 17:38:01 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-09-28 17:38:01 +0200 |
commit | 1e17305d838189d9e4e8f861f9c67fa736a0ba11 (patch) | |
tree | 3456082e55715df8ea0562de4deae571f6257a19 /jfr_playoff/tournamentinfo.py | |
parent | c2150a64886a2bf6550f873a1c6d57c949d224be (diff) | |
parent | 72e52cf8c572f262d022acaa1eb1aa65bccb099e (diff) |
Merge branch 'devel' into position-boxes
Diffstat (limited to 'jfr_playoff/tournamentinfo.py')
-rw-r--r-- | jfr_playoff/tournamentinfo.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jfr_playoff/tournamentinfo.py b/jfr_playoff/tournamentinfo.py index a646d4e..45a7752 100644 --- a/jfr_playoff/tournamentinfo.py +++ b/jfr_playoff/tournamentinfo.py @@ -169,11 +169,12 @@ class TournamentInfo: PlayoffLogger.get('tournamentinfo').warning( 'cannot determine tournament results from HTML: %s(%s)', type(e).__name__, str(e)) - if self.is_finished() and 'final_positions' in self.settings: + if self.is_finished(): + final_positions = self.settings.get('final_positions', []) PlayoffLogger.get('tournamentinfo').info( 'setting final positions from tournament results: %s', - self.settings['final_positions']) - for position in self.settings['final_positions']: + final_positions) + for position in final_positions: if len(teams) >= position: teams[position-1].append(position) return teams |