From 00d2d00ddaca6d54ad9c5a41014d7cf2e6b75096 Mon Sep 17 00:00:00 2001 From: Skia Date: Thu, 18 Jul 2024 19:27:07 +0200 Subject: [PATCH] galaxy: ensure the club score is positive --- galaxy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy/models.py b/galaxy/models.py index 7086f404..294232c3 100644 --- a/galaxy/models.py +++ b/galaxy/models.py @@ -370,7 +370,7 @@ class Galaxy(models.Model): (earliest_end - latest_start).days, ) ) - score += cls.CLUBS_POINTS * (earliest_end - latest_start).days + score += cls.CLUBS_POINTS * abs((earliest_end - latest_start).days) return score ###################