aboutsummaryrefslogtreecommitdiff
path: root/api/rating.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/rating.py')
-rw-r--r--api/rating.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/api/rating.py b/api/rating.py
index 479664a..ebda921 100644
--- a/api/rating.py
+++ b/api/rating.py
@@ -42,7 +42,9 @@ def get_rating(user_id):
"l": -1,
"d": 0
}[game[2]]
- for opponent in counted_opponents:
- # apply the cool curve to the sum score and add to the base score of 400
- score += rating_v1(counted_opponents.get(opponent))
+
+ for opponent in counted_opponents:
+ # apply the cool curve to the sum score and add to the base score of 400
+ score += rating_v1(counted_opponents.get(opponent))
+
return int(score)