mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-17 21:53:50 +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,
|
(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
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
Reference in New Issue
Block a user