From caf920e8fc93226c35b75537196f7701ec0c6b5c Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 12 Feb 2023 15:32:04 +0100 Subject: Do not calculate carry-over if there are unknown teams Fixes #52 --- jfr_playoff/data/info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jfr_playoff') 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 -- cgit v1.2.3