Skip to content

Commit

Permalink
Fix ugly indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps committed Jun 23, 2024
1 parent f51e8ee commit 186218c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/league_service/league_rater.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ def _calculate_new_score(cls, league, current_score, outcome, rating, player_div
# Return score based on rating to have players in top division sorted by rating
if higher_div is None:
return (
player_div.highest_score
* (rating - player_div.min_rating)
/ (player_div.max_rating - player_div.min_rating)
)
player_div.highest_score
* (rating - player_div.min_rating)
/ (player_div.max_rating - player_div.min_rating)
)

if rating > player_div.max_rating:
boost = config.POSITIVE_BOOST
Expand Down

0 comments on commit 186218c

Please sign in to comment.