mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +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,
|
(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
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
Loading…
Reference in New Issue
Block a user