summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-06 22:27:12 +0100
committeremkael <emkael@tlen.pl>2019-01-06 22:27:12 +0100
commit7a654d9a863a6982089bad3c5fc672b3255a20d6 (patch)
treea2000279c33572184ae80db2dede5cd89df6b7db
parent145902a947677af09627124af05b95443f6121b6 (diff)
Fixing setting final positions manually if imported team list has no images
-rw-r--r--jfr_playoff/tournamentinfo.py3
1 files changed, 2 insertions, 1 deletions
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):