galaxy: ensure the club score is positive

This commit is contained in:
Skia 2024-07-18 19:27:07 +02:00
parent 99a25d5e9b
commit 00d2d00dda

View File

@ -370,7 +370,7 @@ class Galaxy(models.Model):
(earliest_end - latest_start).days, (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 return score
################### ###################