summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-03-31 13:02:01 +0200
committeremkael <emkael@tlen.pl>2019-03-31 13:02:01 +0200
commitadb8523a62de11c92d205bb61f83ba038b3652dd (patch)
tree5c1626c4c6d5280b7c219d178a0ebed822e246df /jfr_playoff
parentdd7902ef7b46f598973cf85541d2e5f63ec2943d (diff)
Ability to limit team database to first N teams when fetching team list from external source
Diffstat (limited to 'jfr_playoff')
-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 = []