summaryrefslogtreecommitdiff
path: root/jfr_playoff/data.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-05-26 13:55:55 +0200
committeremkael <emkael@tlen.pl>2019-05-26 13:55:55 +0200
commite04ad11483782bcfa2eac51dedd6eae2af3f9239 (patch)
treed77851def5d7b4eab6456d8f3e21128c2571730c /jfr_playoff/data.py
parent25022cb9280d165c54621cfc9de1f38dca05c703 (diff)
parentadb8523a62de11c92d205bb61f83ba038b3652dd (diff)
Merge branch 'master' into gui
Diffstat (limited to 'jfr_playoff/data.py')
-rw-r--r--jfr_playoff/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py
index 723a38d..107f012 100644
--- a/jfr_playoff/data.py
+++ b/jfr_playoff/data.py
@@ -34,7 +34,7 @@ class PlayoffData(object):
team_list = tournament_info.get_tournament_results()
if len(team_list) == 0:
PlayoffLogger.get('data').warning('team list is empty!')
- return team_list
+ return team_list if 'max_teams' not in self.team_settings else team_list[0:self.team_settings['max_teams']]
def generate_phases(self):
self.grid = []