From 781c13524a68aea11f6b455147f3a332ef55054f Mon Sep 17 00:00:00 2001 From: MichaƂ Klichowicz Date: Tue, 13 Jan 2026 14:44:24 +0100 Subject: Ensuring decimal types match for automatic carry-over calculation --- jfr_playoff/data/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jfr_playoff/data/info.py b/jfr_playoff/data/info.py index 7b2b9f4..c38bd81 100644 --- a/jfr_playoff/data/info.py +++ b/jfr_playoff/data/info.py @@ -294,7 +294,7 @@ class MatchInfo(ResultInfo): if self._auto_carryover: team_data = [self.teams_by_name.get(team, []) for team in teams] if len(team_data[0]) > 4 and len(team_data[1]) > 4: - carry_over = self._auto_carryover / Decimal(100.0) * (team_data[0][4] - team_data[1][4]) + carry_over = self._auto_carryover / Decimal(100.0) * Decimal(team_data[0][4] - team_data[1][4]) if carry_over > 0: self.info.teams[0].score = carry_over self.info.teams[1].score = 0.0 -- cgit v1.3.1