summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jfr_playoff/data/info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jfr_playoff/data/info.py b/jfr_playoff/data/info.py
index f79499b..942e8fb 100644
--- a/jfr_playoff/data/info.py
+++ b/jfr_playoff/data/info.py
@@ -206,10 +206,10 @@ class MatchInfo(ResultInfo):
match_teams = [None] * len(placed_teams)
teams[i].name = match_teams
teams[i].possible_name = possible_teams
- teams[i].known_teams = len([
- team for team in match_teams if team is not None])
teams[i].selected_team = self.config['selected_teams'][i] \
if 'selected_teams' in self.config else -1
+ teams[i].known_teams = 1 if teams[i].selected_team >= 0 else len([
+ team for team in match_teams if team is not None])
PlayoffLogger.get('matchinfo').info(
'config scores for match #%d: %s',
self.info.id, teams)