summaryrefslogtreecommitdiff
path: root/jfr_playoff/data
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2023-02-12 15:32:04 +0100
committeremkael <emkael@tlen.pl>2023-02-12 15:32:04 +0100
commitcaf920e8fc93226c35b75537196f7701ec0c6b5c (patch)
treedd1b245f5667480ef31b5282e9a0cd66008398a9 /jfr_playoff/data
parent7cc52b5a1978efedc62729145db12cb8a3efb447 (diff)
Do not calculate carry-over if there are unknown teams
Fixes #52
Diffstat (limited to 'jfr_playoff/data')
-rw-r--r--jfr_playoff/data/info.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/jfr_playoff/data/info.py b/jfr_playoff/data/info.py
index 557a264..dd2d385 100644
--- a/jfr_playoff/data/info.py
+++ b/jfr_playoff/data/info.py
@@ -269,7 +269,9 @@ class MatchInfo(ResultInfo):
def _determine_outcome(self):
if (self.info.teams[0].known_teams == 1) \
- and (self.info.teams[1].known_teams == 1):
+ and (self.info.teams[1].known_teams == 1) \
+ and (self.info.teams[0].unknown_teams == 0) \
+ and (self.info.teams[1].unknown_teams == 0):
teams = [
team.selected_name
for team in self.info.teams