summaryrefslogtreecommitdiff
path: root/worker.py
diff options
context:
space:
mode:
Diffstat (limited to 'worker.py')
-rw-r--r--worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker.py b/worker.py
index c1d2704..187d86e 100644
--- a/worker.py
+++ b/worker.py
@@ -199,12 +199,12 @@ def process():
# lower rank is better = winner!
for rating, participant in zip(team, roster.participants):
player = participant.player[0]
- participant.trueskill_delta = (rating.mu - rating.sigma) - (float(player.trueskill_mu) - float(player.trueskill_sigma))
if player.trueskill_mu == participant.trueskill_mu \
and player.trueskill_sigma == participant.trueskill_sigma:
# match hasn't been rated before
player.trueskill_mu = rating.mu
player.trueskill_sigma = rating.sigma
+ participant.trueskill_delta = (participant.mu - participant.sigma) - (float(player.trueskill_mu) - float(player.trueskill_sigma))
db.commit()
# notify web