From 186218c366c5f4c54ed45c6aacf22b77fcfd5da9 Mon Sep 17 00:00:00 2001 From: BlackYps Date: Sun, 23 Jun 2024 17:34:06 +0200 Subject: [PATCH] Fix ugly indentation --- service/league_service/league_rater.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/league_service/league_rater.py b/service/league_service/league_rater.py index 8ee9f1b..f1d537c 100644 --- a/service/league_service/league_rater.py +++ b/service/league_service/league_rater.py @@ -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