summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Klichowicz <emkael@tlen.pl>2026-01-13 14:44:24 +0100
committerMichał Klichowicz <emkael@tlen.pl>2026-01-13 14:45:05 +0100
commit781c13524a68aea11f6b455147f3a332ef55054f (patch)
tree5a4516ae40150973d0c9215a0bc33e62068fabe7
parent2c348449abe03d56fb86bd99ca391b91c29dc698 (diff)
Ensuring decimal types match for automatic carry-over calculation
-rw-r--r--jfr_playoff/data/info.py2
1 files changed, 1 insertions, 1 deletions
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