mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-14 13:59:23 +00:00
galaxy: ensure the club score is positive
This commit is contained in:
@ -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
|
||||
|
||||
###################
|
||||
|
Reference in New Issue
Block a user