mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-21 21:53:30 +00:00
galaxy: ensure the club score is positive
This commit is contained in:
parent
99a25d5e9b
commit
00d2d00dda
@ -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
|
||||
|
||||
###################
|
||||
|
Loading…
Reference in New Issue
Block a user