summaryrefslogtreecommitdiff
path: root/jfr_playoff/generator.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-01-05 13:50:05 +0100
committeremkael <emkael@tlen.pl>2020-01-05 13:50:05 +0100
commit856cf764545362dd43cd2f304bd73c4594e1e6e8 (patch)
tree25b7d89758934c1505d4a4775cbace45491b61ea /jfr_playoff/generator.py
parent8ec9f68131ff3ff6f3dab3af5f27fa25e6d66f45 (diff)
If team list source tournament is not finished, predict_teams settings is respected
Fixes #44
Diffstat (limited to 'jfr_playoff/generator.py')
-rw-r--r--jfr_playoff/generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py
index 2c1dc39..e5b0493 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -115,7 +115,7 @@ class PlayoffGenerator(object):
team_label = ''
team_name = ''
else:
- # predicted teams are not in team.name, they're in tem.possible_name so corresponding spots in team.name are empty
+ # predicted teams are not in team.name, they're in team.possible_name so corresponding spots in team.name are empty
is_label_predicted = [name is None for name in team.name]
# fetch labels (shortnames) for teams in both lists
labels = [self.data.get_shortname(name) if name else None for name in team.name]