From 7a654d9a863a6982089bad3c5fc672b3255a20d6 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 6 Jan 2019 22:27:12 +0100 Subject: Fixing setting final positions manually if imported team list has no images --- jfr_playoff/tournamentinfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/tournamentinfo.py b/jfr_playoff/tournamentinfo.py index 45a7752..e992bc9 100644 --- a/jfr_playoff/tournamentinfo.py +++ b/jfr_playoff/tournamentinfo.py @@ -176,7 +176,8 @@ class TournamentInfo: final_positions) for position in final_positions: if len(teams) >= position: - teams[position-1].append(position) + teams[position-1] = (teams[position-1] + [None] * 4)[0:4] + teams[position-1][3] = position return teams def is_finished(self): -- cgit v1.2.3