This commit is contained in:
2026-01-07 16:17:21 +01:00
parent 49d2438ea0
commit 550ad57354
6 changed files with 18 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ class Party(metaclass=PoolMeta):
if overdue > 0:
# scale by overdue relative to limit
limit = self.credit_limit or 1
score += int(min(40, (overdue / float(limit)) * 100))
score += int(min(40, (float(overdue) / float(limit)) * 100))
# cap
if score > 100: