summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-12 17:14:15 +0100
committeremkael <emkael@tlen.pl>2019-01-12 17:14:15 +0100
commit9f39d6fec5ede281664be6e0566aac14d5970f0b (patch)
treedd8b68b87e9b07f1dc6f5f2a68e59bb584b8879d
parent59a7c989c4266205438ddb9a03e71aa2a21886c8 (diff)
Showing certain teams header only if there are any
-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 1726a01..36fa43c 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -162,7 +162,7 @@ class PlayoffGenerator(object):
if len(team_name) != known_teams:
# we've added some predicted team names, so we add a header
team_name.insert(known_teams, self.p_temp.get('MATCH_POSSIBLE_TEAM_LIST_HEADER'))
- if (len(team_label) > 1) and (match.running == 0):
+ if (len(team_label) > 1) and (match.running == 0) and (known_teams > 0):
# and we add a header for matches that haven't started yet and have multiple options for teams
team_name.insert(0, self.p_temp.get('MATCH_TEAM_LIST_HEADER'))
# glue it all together